grep: /usr/include/php/main/php.h: No such file or directory

By | 2015 年 9 月 20 日

安装php扩展,执行 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:

解决办法

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include /usr/include

发表回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据