2013-05-13 129 views
1

即時通訊嘗試安裝php 5.3.X,而我確實使用即時通訊獲取這個錯誤 即時通訊使用centos。從源代碼安裝php時出錯

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 
+0

什麼操作系統?你是否安裝在所需的* devel庫?即php_devel,mysql_devel等 – 2013-05-13 05:39:25

+0

即時通訊使用centos 5.4 64位我已經安裝mysql_devel – hadi 2013-05-13 05:42:18

+0

其他devel軟件包呢? MySql_devel似乎是像其他軟件包一樣抱怨 – 2013-05-13 05:43:23

回答

1

它通過迷惑make clean命令而不是make和make install來工作。 謝謝。

0

這似乎也make clean是不是100%準確。修復了configure ... -line之後,您可能希望完全刪除PHP源以在其上應用配置。