不允许操作 - / usr / bin / update_rubygems [英] Operation not permitted - /usr/bin/update_rubygems
本文介绍了不允许操作 - / usr / bin / update_rubygems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在osx El Capitan上执行时:
When I execute on osx El Capitan:
sudo gem update --system
我得到了错误:
I got the error:
Updating rubygems-update
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/update_rubygems
推荐答案
最后通过自制软件安装ruby。首先安装自制软件:
ended up installing ruby via homebrew. Install homebrew first:
然后执行
then execute
brew install ruby
之后,它的工作完美无瑕。它与本地ruby安装有关。
after that it worked flawlessly. It has something to do with the native ruby installation.
这篇关于不允许操作 - / usr / bin / update_rubygems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文