php phpize报错
来源:互联网 发布:网络攻防技术 课本 编辑:程序博客网 时间:2024/06/05 09:00
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”
并回车,重新启动电脑。
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”
并回车,重新启动电脑。
0 0
- php phpize报错
- 使用:/usr/bin/phpize 报错
- phpize报错:Cannot find config.m4
- phpize动态编译报错Cannot find autoconf
- phpize增加php模块
- phpize增加php模块
- phpize增加php模块
- phpize报cannot find autoconf
- php安装新模块(phpize)
- 使用phpize建立php扩展
- 使用phpize建立php扩展
- php phpize 用于安装扩展
- php phpize 用于安装扩展
- pecl与phpize,php-redis
- pecl与phpize,php-redis
- PHP扩展安装之phpize
- 使用phpize建立php扩展
- 使用phpize安装php扩展
- 脸萌2 首页布局
- 勾股定理一日一证连载30
- cudav7.5+anaconda3.5+Theano+vs2012失败经验
- 15.2节练习
- BM关键字搜索算法学习实践
- php phpize报错
- 不能声明为虚函数的情况
- 小白进阶之线性排序算法之计数排序、基数排序和桶排序
- docker容器资源配额控制
- ios加载第三方库:横竖屏切换错误
- Docker 1.12迎来内置编排机制
- [易飞]供应商料件认定
- FPGA 程序130例-->例10.7~例10.7
- listview.selection()