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

If you chanced upon this message running gem command while trying to upgrade rubygems, you can get around it by typing:

    $ RUBYLIB="/usr/lib/ruby/vendor_ruby/1.8/" ruby /usr/bin/gem

From here, you can upgrade rubygems:

    $ RUBYLIB="/usr/lib/ruby/vendor_ruby/1.8/" ruby /usr/bin/gem install rubygems-update
    $ RUBYLIB="/usr/lib/ruby/vendor_ruby/1.8/" ruby /usr/bin/gem update --system

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options