执行了一下,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中文网2017-04-24 16:01:16
It should be possible to restart after executing
. After upgrading to 10.11, many apps have encountered this pitfall. csrutil disable
to get another one, and then it ran normally. brew install ruby
PHPz2017-04-24 16:01:16
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.