执行了一下,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时没有这个情况,大家有遇到过这个问题吗?
It should be possible to restart after executing
. After upgrading to 10.11, many apps have encountered this pitfall.
But for my problem, I usedcsrutil disable
to get another one, and then it ran normally.
brew install ruby
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.rootless