configure: error: Unable to find gd.h anywhere under /usr/local/gd
清泛原创
安装php时出现configure: error: Unable to find gd.h anywhere under,错误解决
在进行PHP开发环境源码安装时,在安装PHP-5.2.6是出现:configure: error: Unable to find gd.h anywhere under错误
编译PHP的--with-gd=/usr/include
错误提示:
configure: error: Unable to find gd.h anywhere under
表明已经装好GD库啦,把后面的路径取消就可以啦
--with-gd --with-jpeg --with-png
ok
一般到这里就可以解决。
解决方式:
1.在gd库的安装路径下搜索没有发现gd.h文件,但是在/etc/include下有gd.h文件
2.在网上搜索发现重装gd库可解决
3.重新安装gd库,在安装时出现:
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation. 错误,在./configure 后加上--enable-m4_pattern_allow 重新编译即可通过
4.重新编译php,通过
在进行PHP开发环境源码安装时,在安装PHP-5.2.6是出现:configure: error: Unable to find gd.h anywhere under错误
编译PHP的--with-gd=/usr/include
错误提示:
表明已经装好GD库啦,把后面的路径取消就可以啦
--with-gd --with-jpeg --with-png
ok
一般到这里就可以解决。
解决方式:
1.在gd库的安装路径下搜索没有发现gd.h文件,但是在/etc/include下有gd.h文件
2.在网上搜索发现重装gd库可解决
3.重新安装gd库,在安装时出现:
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation. 错误,在./configure 后加上--enable-m4_pattern_allow 重新编译即可通过
4.重新编译php,通过
上一篇:configure: error: freetype-config not found.
下一篇:PHP编译configure时常见错误