在安裝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

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

# 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"
相關文章
相關標籤/搜索