Updating RubyGems on Ubuntu 9.04
TweetI don’t know how many times I’ve had to do this.
But every time I install Ubuntu again, I get this;
matthew@Rudyness:~$ sudo gem update --system
ERROR: While executing gem ... (RuntimeError)
gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
The simple fix;
matthew@Rudyness:~$ sudo gem install rubygems-update
Successfully installed rubygems-update-1.3.5
1 gem installed
Installing ri documentation for rubygems-update-1.3.5...
Installing RDoc documentation for rubygems-update-1.3.5...
matthew@Rudyness:~$ sudo /var/lib/gems/1.8/bin/update_rubygems
Installing RubyGems 1.3.5
RubyGems 1.3.5 installed
RubyGems installed the following executables:
/usr/bin/gem1.8
matthew@Rudyness:~$ gem --version
1.3.5
From now on you can “sudo gem update —system” as much as you want.
Sweetness.