您现在的位置是:首页> 操作系统> Linux

Centos7.4编译PHP报错

  • 3725人已阅读
  • 时间:2019-08-18 09:15:17
  • 分类:Linux
  • 作者:祥哥

ibility=hidden -pthread -DZTS  -c /root/php-5.6.23/ext/gd/gd.c -o ext/gd/gd.lo

/root/php-5.6.23/ext/gd/gd.c:57:22: fatal error: X11/xpm.h: No such file or directory

 # include <X11/xpm.h>


解决方法如下:

1.安装libxpm
yum install libXpm-devel.x86_64
2.重新安装GD
3.在安装PHP就正常了。


Top