cryingwhilecoding

drip drop drip..

Since I can never seem to recall how to update rubygems when there is a new rubygems update but it refuses to work..

1
2
3
4
5
6
7
8
9
10
11
12
13
14

mike@cryingwhilecoding:~$ gem -v
1.2.0
mike@cryingwhilecoding:~$ gem list rubygems

*** LOCAL GEMS ***

rubygems-update (1.3.0, 1.2.0, 1.1.1, 1.1.0, 1.0.1, 0.9.5, 0.9.4, 0.9.3, 0.9.2)
mike@cryingwhilecoding:~$ sudo gem up --system
Updating RubyGems
Nothing to update
mike@cryingwhilecoding:~$ gem -v
1.2.0
mike@cryingwhilecoding:~$ 

The trick is to just call update_rubygems

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

mike@cryingwhilecoding:~$ sudo update_rubygems
Installing RubyGems 1.3.0
mkdir -p /usr/local/lib/site_ruby/1.8
mkdir -p /usr/bin

...blah blah...hey look! a note about how to do this! :)

If you have an older version of RubyGems installed, then you can still
do it in two steps:

  $ gem install rubygems-update  (again, might need to be admin/root)
  $ update_rubygems              (... here too)

...blah blah...

mike@cryingwhilecoding:~$ gem -v
1.3.0
mike@cryingwhilecoding:~$ 

Hoorah, success. It’s too bad you don’t get that helpful note in there until after you figure out how to do it.

Sorry, comments are closed for this article.