编译php 5.4.11报错了,求帮助

shi812799630 2014-01-22 04:29:14
错误信息:/src/php-5.4.11/ext/gd/gd.c -o ext/gd/gd.lo
In file included from /usr/local/src/php-5.4.11/ext/gd/gd.c:58:
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:43: 错误:嵌套的 ‘enum gdPixelateMode’ 重定义
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:43: 错误:‘enum gdPixelateMode’ 重声明
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:44: 错误:枚举 ‘GD_PIXELATE_UPPERLEFT’ 重声明
/usr/lamp/gd2//include/gd.h:886: 错误:‘GD_PIXELATE_UPPERLEFT’ 的上一个定义在此
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:46: 错误:枚举 ‘GD_PIXELATE_AVERAGE’ 重声明
/usr/lamp/gd2//include/gd.h:888: 错误:‘GD_PIXELATE_AVERAGE’ 的上一个定义在此
make: *** [ext/gd/gd.lo] 错误 1
[root@ser243 php-5.4.11]#


configure内容:
[root@ser243 php-5.4.11]# ./configure --prefix=/usr/lamp/php --with-config-file-path=/usr/lamp/php/etc --with-apxs2=/usr/lamp/apache243/bin/apxs --with-mysql=/usr/lamp/mysql/ --with-libxml-dir=/usr/lamp/libxml2/ --with-png-dir=/usr/lamp/libpng/ --with-jpeg-dir=/usr/lamp/jpeg9/ --with-freetype-dir=/usr/lamp/freetype/ --with-gd=/usr/lamp/gd2/ --with-zlib-dir=/usr/lamp/zlib/ --with-mcrypt=/usr/lamp/libmcrypt/ --with-mysqli=/usr/lamp/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets
...全文
190 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shi812799630 2014-01-24
  • 打赏
  • 举报
回复
引用 1 楼 wuxiang411 的回复:
php源码包里有gd扩展 直接--with-gd就行了 不然会有冲突
可以了,谢谢
黄袍披身 2014-01-23
  • 打赏
  • 举报
回复
不知道是不是以前我编译时遇到的错误,如果是的话需要自己修改里面文件的某个地方,查一下精华区好像我有写。不过我记得是在64BIT上才有这事,你这是在64BIT上吗?
wjcody 2014-01-22
  • 打赏
  • 举报
回复
php源码包里有gd扩展 直接--with-gd就行了 不然会有冲突

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧