从源安装php时出错

时间:2013-05-13 05:33:52

标签: php mysql

我试图安装php 5.3.X,而我确实让我得到这个错误 我正在使用centos。

ext/mysql/php_mysql.o: In function `php_mysql_do_connect':

/root/php-5.3.25/ext/mysql/php_mysql.c:965: undefined reference to `_mysqlnd_init'
/root/php-5.3.25/ext/mysql/php_mysql.c:982: undefined reference to `mysqlnd_connect'
/root/php-5.3.25/ext/mysql/php_mysql.c:846: undefined reference to `_mysqlnd_init'
/root/php-5.3.25/ext/mysql/php_mysql.c:855: undefined reference to `mysqlnd_connect'
/root/php-5.3.25/ext/mysql/php_mysql.c:903: undefined reference to `mysqlnd_connect'
ext/mysql/php_mysql.o: In function `zif_mysql_fetch_lengths':
/root/php-5.3.25/ext/mysql/php_mysql.c:2266: undefined reference to `_mysqlnd_fetch_lengths'
ext/mysql/php_mysql.o: In function `zif_mysql_escape_string':
/root/php-5.3.25/ext/mysql/php_mysql.c:1811: undefined reference to `mysqlnd_old_escape_string'
ext/mysql/php_mysql.o: In function `zif_mysql_get_client_info':
/root/php-5.3.25/ext/mysql/php_mysql.c:1133: undefined reference to `mysqlnd_get_client_info'
ext/mysql/php_mysql.o: In function `zm_info_mysql':
/root/php-5.3.25/ext/mysql/php_mysql.c:660: undefined reference to `mysqlnd_get_client_info'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

2 个答案:

答案 0 :(得分:1)

它使用make make clean命令而不是make和make install。 谢谢。

答案 1 :(得分:0)

make clean似乎并非100%准确。修复configure ...行后,您可能需要完全删除PHP源以应用configure。