1

我试图安装 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
4

2 回答 2

1

它通过迷人的 make clean 命令而不是 make 和 make install 来工作。谢谢你。

于 2013-05-14T20:54:51.523 回答
0

这似乎make clean也不是 100% 准确的。一旦你修复了你的configure ...-line,你可能想要完全删除 PHP 源代码来应用配置。

于 2015-08-24T14:05:43.683 回答