Tuesday, August 14, 2012

RubyGems Upgrade On Ubuntu

Watching a SASS tutorial on youtube, I realized that my rubygems wasn't up to date.

Doing $gem -v on my pc, I get version 1.3.xx. The latest at this time is 1.8.24

Running $ gem update --system gives me an error message...
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.

Going to my good friend, Google, I found this on stackoverflow and gave it a try...
$ sudo gem install rubygems-update
Successfully installed rubygems-update-1.8.24
1 gem installed
Installing ri documentation for rubygems-update-1.8.24...
Installing RDoc documentation for rubygems-update-1.8.24...

$ gem -v
1.3.7

$ sudo update_rubygems
RubyGems 1.8.24 installed

== 1.8.24 / 2012-04-27
* 1 bug fix:
  * Install the .pem files properly. Fixes #320
  * Remove OpenSSL dependency from the http code path
------------------------------------------------------------------------------
RubyGems installed the following executables:
 /usr/bin/gem1.9.1

j@ime:~$ gem -v
1.8.24

No comments:

Post a Comment