不允许操作 -/usr/bin/update_rubygems [英] Operation not permitted - /usr/bin/update_rubygems

查看:11
本文介绍了不允许操作 -/usr/bin/update_rubygems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 osx El Capitan 上执行时:

When I execute on osx El Capitan:

sudo gem update --system  

我得到了错误:

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:

http://brew.sh

然后执行

brew install ruby

之后它完美地工作了.它与原生 ruby​​ 安装有关.

after that it worked flawlessly. It has something to do with the native ruby installation.

这篇关于不允许操作 -/usr/bin/update_rubygems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆