在安裝mysqli的時候,出現error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory


/application/php5.5.28/include/php/main/../main/php_config.h:2113:1: warning: this is the location of the previous definition/home/neo/tools/php-5.5.28/ext/mysqli/mysqli_api.c:36:47: error: ext/mysqlnd/mysql_float_to_double.h: No such file or directorymake: *** [mysqli_api.lo] Error 1

我的解決方法:
直接修改源碼,把找不到的那個頭文件的路徑修改為絕對路徑,編譯通過了,也能正常使用

# pwd 
/home/neo/tools/php-5.5.28/ext/mysqli
# vim mysqli_api.c
把第36行的
#include "ext/mysqlnd/mysql_float_to_double.h"
修改為
#include "/home/neo/tools/php-5.5.28/ext/mysqlnd/mysql_float_to_double.h"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM