六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 67|回复: 0

安装php时出现configure: error: Unable to find gd.h anywhere under,错误解决

[复制链接]

升级  78%

7

主题

7

主题

7

主题

童生

Rank: 1

积分
39
 楼主| 发表于 2013-2-7 00:54:22 | 显示全部楼层 |阅读模式
在进行PHP开发环境源码安装时,在安装PHP-5.2.6是出现:configure: error: Unable to find gd.h anywhere under错误

解决方式:
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,通过
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表