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的时候就出现这种错误,该怎么解决呢? 展开
/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的时候就出现这种错误,该怎么解决呢? 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询