/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”