欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

rubygems在ubuntu下的升级 博客分类: ruby ubuntugemrubygemsdebianupdate 

程序员文章站 2024-03-20 16:48:04
...
在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.11
sudo update_rubygems
sudo gem update --system