1. 程式人生 > >error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory

error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory

報錯:

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

解答:

pwd

/usr/local/src/php-7.1.15/ext/mysqli

vim mysqli_api.c

把第36行的

#include “ext/mysqlnd/mysql_float_to_double.h”

修改為

#include “/usr/local/src/php-7.1.15/ext/mysqlnd/mysql_float_to_double.h”