yum install libXpm-devel
在查询他的安装位置:#rpm -ql libXpm-devel/usr/bin/cxpm/usr/bin/sxpm/usr/include/X11/xpm.h/usr/lib/libXpm.so/usr/lib/pkgconfig/xpm.pc/usr/share/man/man1/cxpm.1.gz/usr/share/man/man1/sxpm.1.gz在PHP的./configure配置中添加:--with-xpm-dir=/usr/lib