您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php phpize报错

2026/2/16 7:01:43发布15次查看
mac 10.11下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.11.sdk/usr/include  /usr
ln: /usr/include: 即使使用sudo也报错:operation not permitted,这是因为苹果在os x
10.11中引入的sip特性使得即使加了sudo(也就是具有root权限)也无法修改系统级的目录,其中就
包括了/usr/bin。要解决这个问题有两种做法:
解决方法:no.1(推荐)
简单方便,执行以下方法安装command line tool就自动会帮你配置好unix开发环境:
$ xcode-select --install
解决方法:no.2
暂时停用系统保护:
按下开机键时即刻按住 command r(“r”字母键),中间的苹果标志及进度条出现后放开按键,等待恢复安装界面和 “os x 实用工具”
窗口出现后,点击顶部菜单栏的 “实用工具”,在其下拉菜单点选运行 “终端”,在终端闪动字符的位置直接输入“csrutil disable”
并回车,重新启动电脑。
以上就介绍了 php phpize报错,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product