免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1356 | 回复: 2
打印 上一主题 下一主题

[Web] 安装PHP遇到的一个问题,久不能解,望有能者解之! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-10-24 17:50 |只看该作者 |倒序浏览
本帖最后由 moting1a 于 2013-10-24 21:19 编辑

php安装(之前GD已经安装包括下面configure中配置的一些组件已经正确安装) :

./configure --prefix=/usr/local/php --with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/png --with-freetype-dir=/usr/local/freetype --with-mysql=/usr/local/mysql --enable-fastcgi --enable-fpm
------------------------------
这是configure

运行后出错:
configure: error: GD build test failed.  Please check the config.log for details.

---------------------------------------------

打开日志来看 是这样的: Override any gcc2 internal prototype to avoid an error. */
提示

---------------------------------------------

如果去掉 --with-gd=/usr/local/gd 可以运行通过

---------------------------------

GD的安装过程如下:

#./configure --prefix=/usr/local/gd --with-png=/usr/local/png --with-jpeg=/usr/local/jpeg --with- freetype=/usr/local/freetype --with-fontconfig=/usr/local/fontconfig
#cp /usr/local/png/include/png.h ./
#cp /usr/local/png/include/pngconf.h ./
#make
#make install

-------------------------------------

刚刚接触linux  望朋友告知我哪里出错了!!!

谢谢!!!

论坛徽章:
0
2 [报告]
发表于 2013-10-24 17:51 |只看该作者
补充下 我用的系统是 centos6.4  虚拟机运行!!

论坛徽章:
0
3 [报告]
发表于 2013-10-24 19:18 |只看该作者
求解                                                    。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP