macos - OS X升級10.11後gem無法使用
PHP中文网
PHP中文网 2017-04-24 15:59:16
0
3
888

執行了一下,gem install ***
提示:

ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

於是用,sudo gem install ***
提示:

ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/***

之前用10.10時沒有這個狀況,大家有遇過這個問題嗎?

PHP中文网
PHP中文网

认证0级讲师

全部回覆(3)
洪涛

執行csrutil disable後再重啟應該是可以的,升級10.11後,很多app都遇到了這個坑。

但針對我的問題而言,我用brew install ruby又弄了一個,然後執行正常了。

PHPzhong

這個是因為 SIP(System Integrity Protection) 的緣故。

你需要到 Recovery Mode 中,開啟 Terminal,輸入 csrutil disable,執行完畢重啟即可。

phpcn_u1582

無根

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!