mac php安装扩展 make install not permit
来源:互联网 发布:微医挂号网可靠吗 知乎 编辑:程序博客网 时间:2024/06/05 09:09
装不了php的扩展,make install失败
RudonMacBook:igbinary-master rudon$ make install
Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20131226/
cp: /usr/lib/php/extensions/no-debug-non-zts-20131226/#INST@12567#: Operation not permitted
make: *** [install-modules] Error 1
cp: /usr/lib/php/extensions/no-debug-non-zts-20121212/#INST@17000#: Operation not permitted
原因:
原来是OSX 10.11 El Capitan(或更高)新添加了一个新的安全机制叫系统完整性保护System Integrity Protection (SIP),所以对于目录
/System
/sbin
/usr
不包含(/usr/local/)
仅仅供系统使用,其它用户或者程序无法直接使用,而我们的/usr/lib/php/extensions/刚好在受保护范围内
解决方法:
禁掉SIP保护机制,步骤是:
- 重启系统
- 按住Command + R (重新亮屏之后就开始按,象征地按几秒再松开,出现苹果标志,ok)
- 菜单“实用工具” ==>> “终端” ==>> 输入csrutil disable;执行后会输出:Successfully disabled System Integrity Protection. Please restart the machine for the changes to take effect.
- 再次重启系统
禁止掉SIP后,就可以顺利的安装了,当然装完了以后你可以重新打开SIP,方法同上,只是命令是csrutil enable
阅读全文
0 0
- mac php安装扩展 make install not permit
- Make Mac Lion Install
- mac编译安装php扩展
- mac安装mcrypt PHP扩展
- mac php 安装 encrypt 扩展
- linux下安装php make install时出现错误 解决
- make[] install: Command not found
- mac安装 redis 并 安装 PHP扩展
- 整理 mac 安装php扩展mcrypt
- mac下安装php-redis扩展
- Mac 10.9安装php扩展mcrypt
- mac下安装php-redis扩展
- mac下安装 php mongo redis 扩展
- MAC下安装php扩展memcache
- mac os下php安装mcrypt扩展
- Mac OS X安装redis-php扩展
- Mac下PHP安装Memcache扩展
- MAC下 Redis php扩展安装
- PCA
- 用CSS,制作“新闻标题”案例
- 广播变量和累加器
- FaceSwap函数说明
- yargs使用总结
- mac php安装扩展 make install not permit
- 一些化学知识
- arm 汇编代码还原--for语句还原
- Redis入门篇
- 如何解决android studio :nothing to show 真机调试找不到设备 的问题
- ContentProvider实现数据共享
- MYSQL之存储引擎
- eclipse/myeclipse修改内存大小(针对不同大小内存设定ini文件配置)
- java分割字符串 Unclosed character class near index 错误