uninitialized constant Gem::GemRunner (NameError) - Ubuntu

I mentioned that I now use Ubuntu 7.10 on my Dell. After installing Ruby and RubyGems using apt-get, I got this nasty error AFTER doing ’sudo gem update –system’.

It appears that similar problems have occurred with Mac OS X as well. For one thing, you can try adding following to the gem file:

require ‘rubygems/gem_runner’

However, it was irritating me that along with this problem, I had to install irb separately and ruby sitting in /usr/bin directory.

My solution? Just install using the source. It always works for me without any problem and any subsequent stuff I add works without any issues. What I also like is that some of my scripts explicitly points to the location of ruby. Although I can correct this using env, why bother?

Comments

3 Responses to “uninitialized constant Gem::GemRunner (NameError) - Ubuntu”

  1. Brian Klug on March 13th, 2008 2:20 am

    Thanks — this worked :)

  2. Venelin Mihaylov on March 22nd, 2008 2:36 am

    Thanks man, the require thingie worked, I placed it in /usr/bin/gem

  3. Stephen Wilding on June 28th, 2008 4:11 pm

    Top man! thanks for the help!

Leave a Reply

You must be logged in to post a comment.