How to upgrade rubygems

217

I need to upgrade gems to 1.8 i tried installing the respective debian packages but it seems its not getting upgraded

[email protected]:~$ dpkg -l |grep -i rubygem
ii  rubygems                               1.3.5-1ubuntu2                                  package management framework for Ruby libraries/applications
ii  rubygems-lwes                          0.8.2-1323277262                                LWES rubygems
ii  rubygems1.8                            1.3.5-1ubuntu2                                  package management framework for Ruby libraries/applications
ii  rubygems1.9                            1.3.5-1ubuntu2                                  package management framework for Ruby libraries/applications
[email protected]:~$ 


[email protected]:~$ gem
gem     gem1.8  gem1.9  
[email protected]:~$ sudo gem1.8 install serve
ERROR:  Error installing serve:
        multi_json requires RubyGems version >= 1.3.6
[email protected]:~$

This question is tagged with ruby gem

~ Asked on 2012-11-29 12:44:55

The Best Answer is


482

Install rubygems-update

gem install rubygems-update
update_rubygems
gem update --system

run this commands as root or use sudo.

~ Answered on 2012-11-29 12:49:03


55

You can update all gems by just performing:

sudo gem update

~ Answered on 2016-03-22 09:00:48


Most Viewed Questions: