I've just installed a new vm (VirtualBox) with Ubuntu 10.4 and Ruby1.9.1. I've got the package for RUbyGems1.9.1 but when I do gem --version I still get 1.3.5.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I got it working using
gem install rubygems-update
cd /var/lib/gems/1.9.1/bin
sudo ./update_rubygems
回答2:
This no longer works. It now gives the error message: "Since apparently nobody reads my emails, blog posts or the README:
DO NOT UPDATE RUBYGEMS ON RUBY 1.9! See UPGRADING.rdoc for details."
It appears the only way to get beyond 1.3.5 on Ubuntu is to go outside apt-get and download the source. http://blog.zenspider.com/2010/12/rubygems-141-has-been-released.html