NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Shuffling RubyGems versions

Posted on May 28, 2008 - Filed Under FreeBSD, Ruby, RubyOnRails

I do some Facebook work for my customer, and when I checked out current source into my dev environment, application didn’t want to work :) Basically Facebook related code did not initialized properly.

I was curious what is causing it and finally gave up (RFacebook plugin upgrade did the job), but it seemed that it is something related to RubyGems version. So I did RubyGems downgrade and upgrade several times. I did it via fetching RubyGems source and ruby setup.rb.

I’m not sure if it is FreeBSD specific, but if after RubyGems upgrade (I did upgrade from 0.9.4 to 1.1.1) You are experiencing:

/usr/local/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

Then just delete /usr/local/bin/gem and symlink /usr/local/bin/gem18 as /usr/local/bin/gem.

Popularity: 15% [?]

Hits for this post: 3032

Similar Posts

Comments

2 Responses to “Shuffling RubyGems versions”

  1. John Athayde on July 1st, 2008 6:19

    Thanks for documenting this! saved me hours of headache I’m sure :)

  2. NetManiac on July 1st, 2008 14:40

    @John
    Thank You ;)

    I do write down such issues since my own blog works for me as reference :) when I hit again on similar problem

Leave a Reply