六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 80|回复: 0

rubygems在ubuntu下的升级

[复制链接]

升级  74%

9

主题

9

主题

9

主题

童生

Rank: 1

积分
37
 楼主| 发表于 2013-1-15 13:34:10 | 显示全部楼层 |阅读模式
在ubuntu下升级rubygems报以下错误
(*ruby版本1.9.2
   rubygems版本1.3.7


ERROR:  While executing gem ... (RuntimeError)    gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian.
解决方案
Update to 1.8.11: sudo gem install rubygems-update -v 1.8.11sudo update_rubygemssudo gem update --system
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表