溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

php5.5.38增加mysqli擴展

發(fā)布時間:2020-08-28 03:43:17 來源:網(wǎng)絡 閱讀:1258 作者:xingyun2010 欄目:MySQL數(shù)據(jù)庫

編譯的時候正常:

./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config

在make的時候報以下錯誤:

/usr/local/mysql/include/mysql/my_config.h:1147:1: warning: "PACKAGE_VERSION" redefined
In file included from /usr/local/php/include/php/TSRM/tsrm_config.h:1,
                 from /usr/local/php/include/php/TSRM/tsrm_config_common.h:13,
                 from /usr/local/php/include/php/TSRM/tsrm_virtual_cwd.h:27,
                 from /usr/local/php/include/php/main/php.h:401,
                 from /usr/local/php-5.5.38/ext/mysqli/mysqli_api.c:29:
/usr/local/php/include/php/main/../main/php_config.h:2113:1: warning: this is the location of the previous definition
/usr/local/php-5.5.38/ext/mysqli/mysqli_api.c:36:47: error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory
make: *** [mysqli_api.lo] Error 1

解決方法:

修改 vim /usr/local/php-5.5.38/ext/mysqli/mysqli_api.c文件

將#include "ext/mysqlnd/mysql_float_to_double.h" 修改為絕對路徑:

#include "/usr/local/php-5.5.38/ext/mysqlnd/mysql_float_to_double.h"

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI