美文网首页
安装扩展中遇到 :grep: /usr/include/php/

安装扩展中遇到 :grep: /usr/include/php/

作者: ysnows | 来源:发表于2017-10-23 14:23 被阅读1189次

1、执行phpize遇到:

$ 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.13.sdk/usr/include /usr/include

相关文章

网友评论

      本文标题:安装扩展中遇到 :grep: /usr/include/php/

      本文链接:https://www.haomeiwen.com/subject/grhauxtx.html