macos - OS X升级10.11后gem无法使用
PHP中文网
PHP中文网 2017-04-24 15:59:16
0
3
892

执行了一下,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级讲师

reply all(3)
洪涛

It should be possible to restart after executing

. After upgrading to 10.11, many apps have encountered this pitfall. csrutil disable

But for my problem, I used

to get another one, and then it ran normally. brew install ruby

PHPzhong

This is because of SIP (System Integrity Protection).

You need to go to Recovery Mode, open Terminal, enter csrutil disable, and then restart after execution.

phpcn_u1582

rootless

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!