报错
执行 phpize 时, 报如下错误:
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:
解决
// 先执行命令
xcode-select --install // 若不行,执行下面命令
cd /Library/Developer/CommandLineTools/Packages/
open macOS_SDK_headers_for_macOS_10..pkg