您好,欢迎访问一九零五行业门户网

mac 10.11 phpize 报错问题

新换了电脑,装一下php的php-protobuf 框架扩展,遇到一些问题,记录于此。
进入php-protobuf 页面 phpize 如下
grep: /usr/include/php/main/php.h: no such file or directorygrep: /usr/include/php/zend/zend_modules.h: no such file or directorygrep: /usr/include/php/zend/zend_extensions.h: no such file or directoryconfiguring for:php api version: zend module api no: zend extension api no:

google之
解决方法:
sudo ln -s
/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.11.sdk/usr/include/ /usr/include
执行之
ln: /usr/iclude: operation not permitted

报这个错误
/usr/ 下是没有include 这个文件夹的
还有mkdir include 创建不了文件夹 一样报operation not permitted
求大神支招
回复内容: 新换了电脑,装一下php的php-protobuf 框架扩展,遇到一些问题,记录于此。
进入php-protobuf 页面 phpize 如下
grep: /usr/include/php/main/php.h: no such file or directorygrep: /usr/include/php/zend/zend_modules.h: no such file or directorygrep: /usr/include/php/zend/zend_extensions.h: no such file or directoryconfiguring for:php api version: zend module api no: zend extension api no:

google之
解决方法:
sudo ln -s
/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.11.sdk/usr/include/ /usr/include
执行之
ln: /usr/iclude: operation not permitted

报这个错误
/usr/ 下是没有include 这个文件夹的
还有mkdir include 创建不了文件夹 一样报operation not permitted
求大神支招
晕死,ls都在说什么,安装command line tool就自动会帮你配置好unix开发环境的
xcode-select --install
php环境有问题了 brew重装php试试
sudo ln -s/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.11.sdk/usr/include/ /usr/include
链接失败原因 10.11加强了系统保护 /usr 木有操作权限
解决方法
暂时停用系统保护:
按下开机键时即刻按住 command r(“r”字母键),中间的苹果标志及进度条出现后放开按键,等待恢复安装界面和 “os x 实用工具”
窗口出现后,点击顶部菜单栏的 “实用工具”,在其下拉菜单点选运行 “终端”,在终端闪动字符的位置直接输入“csrutil disable”
并回车,重新启动电脑。
当然也可以直接用xampp 中的phpize
其它类似信息

推荐信息