Linux源码安装mysql后再安装php5.2.6./configure通过了但编译时出现报错

ext/gd/.libs/gd.o:Infunction`_php_image_type':/usr/local/src/php-5.2.6/ext/gd/gd.c:24... ext/gd/.libs/gd.o: In function `_php_image_type':
/usr/local/src/php-5.2.6/ext/gd/gd.c:2423: undefined reference to `gdGetC'
/usr/local/src/php-5.2.6/ext/gd/gd.c:2423: undefined reference to `getmbi'
/usr/local/src/php-5.2.6/ext/gd/gd.c:2423: undefined reference to `skipheader'
ext/mysqli/.libs/mysqli_repl.o: In function `zif_mysqli_slave_query':
/usr/local/src/php-5.2.6/ext/mysqli/mysqli_repl.c:207: undefined reference to `m
ysql_slave_query'
ext/mysqli/.libs/mysqli_repl.o: In function `zif_mysqli_rpl_query_type':
/usr/local/src/php-5.2.6/ext/mysqli/mysqli_repl.c:168: undefined reference to `m
ysql_rpl_query_type'
ext/mysqli/.libs/mysqli_repl.o: In function `zif_mysqli_rpl_probe':
/usr/local/src/php-5.2.6/ext/mysqli/mysqli_repl.c:147: undefined reference to `m
ysql_rpl_probe'
ext/mysqli/.libs/mysqli_repl.o: In function `zif_mysqli_rpl_parse_enabled':
/usr/local/src/php-5.2.6/ext/mysqli/mysqli_repl.c:130: undefined reference to `m
ysql_rpl_parse_enabled'
........
错误连续:
/usr/local/src/php-5.2.6/ext/mysqli/mysqli_repl.c:76: undefined reference to `my
sql_enable_reads_from_master'
ext/mysqli/.libs/mysqli_repl.o: In function `zif_mysqli_disable_rpl_parse':
/usr/local/src/php-5.2.6/ext/mysqli/mysqli_repl.c:59: undefined reference to `my
sql_disable_rpl_parse'
ext/mysqli/.libs/mysqli_repl.o: In function `zif_mysqli_disable_reads_from_maste
r':
/usr/local/src/php-5.2.6/ext/mysqli/mysqli_repl.c:43: undefined reference to `my
sql_disable_reads_from_master'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] error 1
但./configure通过了
[root@sql01 php]# ./configure --prefix=/usr/local/php --with-config-file-path=/u
sr/local/php/etc --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/loca
l/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-png-dir=/usr/local/libpng/
--with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --wi
th-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/loc
al/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets

在make && make install的时候出现这样的错
之前查看别人的问题已经修改了是因为mysql5版本以上的一个bug,说是修改mysql.h文件,确实都已经改了,可再次编译php5.2.6的时候就出现这种错误,该怎么解决呢?
展开
 我来答
若以下回答无法解决问题,邀请你更新回答
百度网友6c0f575
2014-07-28 · TA获得超过520个赞
知道小有建树答主
回答量:533
采纳率:0%
帮助的人:488万
展开全部
with-gd=/usr/local/gd2/ 改成with-gd
使用默认系统库看看
追问
你的回答不管用,我的GD库已经装了,后面装了一个版本较高的,不加载GD库能正常安装,所以结论还是GD库的文件有问题,查了一下相关的gd资料,才发现里面有些内容并不是兼容的,建议装一个版本较高的php,能解决你的问题
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式