自己安装php7.4 中mysql插件时,提示如下的错误
pdo_mysql.c:30:
In file included from /Users/aaa/soft/php-7.4.5/ext/pdo_mysql/pdo_mysql.c:30:
./php_pdo_mysql_int.h:25:11: fatal error: 'ext/mysqlnd/mysqlnd.h' file not found
# include "ext/mysqlnd/mysqlnd.h"
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
查了下是有此源文件的,需要创建下软件连接
ln -s /Users/aaa/soft/php-7.4.5/ext/ /Users/aaa/soft/php-7.4.5/ext/pdo_mysql
再次编译下make&& sudo make install就可以 了