moting1a 发表于 2013-10-24 17:50

安装PHP遇到的一个问题,久不能解,望有能者解之!

本帖最后由 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望朋友告知我哪里出错了!!!

谢谢!!!

moting1a 发表于 2013-10-24 17:51

补充下 我用的系统是 centos6.4虚拟机运行!!

moting1a 发表于 2013-10-24 19:18

求解                                                    。
页: [1]
查看完整版本: 安装PHP遇到的一个问题,久不能解,望有能者解之!