mac 编译PHP扩展 PDO_MYSQL报错
192:pdo_mysql hongwei$ make
/bin/sh /Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/libtool --mode=compile cc -I/usr/local/php7/include/php/ext -I -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql -DPHP_ATOM_INC -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/include -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/main -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql -I/usr/local/php7/include/php -I/usr/local/php7/include/php/main -I/usr/local/php7/include/php/TSRM -I/usr/local/php7/include/php/Zend -I/usr/local/php7/include/php/ext -I/usr/local/php7/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/pdo_mysql.c -o pdo_mysql.lo
mkdir .libs
cc -I/usr/local/php7/include/php/ext -I -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql -DPHP_ATOM_INC -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/include -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/main -I/Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql -I/usr/local/php7/include/php -I/usr/local/php7/include/php/main -I/usr/local/php7/include/php/TSRM -I/usr/local/php7/include/php/Zend -I/usr/local/php7/include/php/ext -I/usr/local/php7/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/pdo_mysql.c -fno-common -DPIC -o .libs/pdo_mysql.o
In file included from /Users/hongwei/Downloads/soft/php-7.1.1/ext/pdo_mysql/pdo_mysql.c:32:
./php_pdo_mysql_int.h:27:11: fatal error: 'ext/mysqlnd/mysqlnd.h' file not found
include "ext/mysqlnd/mysqlnd.h"
^
1 error generated.
我进ext目录看了下,发现文件是存在的,但是编译的时候就是找不到php版本是7.1.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论