grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No:
mac下,执行 phpize 安装PHP扩展时报错
依次执行下面两条命令, 安装header包
cd /Library/Developer/CommandLineTools/Packages/ // 不同的mac系统, 可能名字不一样 open macOS_SDK_headers_for_macOS_10.14.pkg
grep: /usr/include/php/main/php.h: No such file or directory
原文:https://www.cnblogs.com/hujingnb/p/10845623.html