Centos7中PHP编译安装mysqli扩展报错
In file included from /home/work/php-7.2.6/ext/mysqli/mysqli.c:34:0:
/home/work/php-7.2.6/ext/mysqli/php_mysqli_structs.h:42:33: fatal error: ext/mysqlnd/mysqlnd.h: No such file or directory
include "ext/mysqlnd/mysqlnd.h"
报错说是php_mysqli_structs.h这个文件中的这条路径ext/mysqlnd/mysqlnd.h不对
解决办法:
将ext/mysqlnd/mysqlnd.h改为绝对路径就好了。