uninitialized constant Gem::GemRunner
On my Debian machine I upgraded rubygems this morning. Suddenly gem -v wouldn't work and threw uninitialized constant Gem::GemRunner. Thinking the install was half-baked, I uninstalled, reinstalled, using apt-get. Kept getting v1.0 of RubyGems and the same error. Gave up and used nano to toss the line below into /usr/bin/gem
require 'rubygems/gem_runner'
Haven't seen anyone else complaining so far, which is really the only strange part. Works for me now, though. Very annoying to have to hack a system library to get it to work, though--makes me feel dirty. I'll be looking for a better answer. :-)
require 'rubygems/gem_runner'
Haven't seen anyone else complaining so far, which is really the only strange part. Works for me now, though. Very annoying to have to hack a system library to get it to work, though--makes me feel dirty. I'll be looking for a better answer. :-)
6 comments
Comments
-
FYI, I ran into exactly the same problem... your hack worked for me too. Thanks!
-
had the same problem and fix worked, thanks. I also did the same upgrade on Fedora 8 and had no problems.
-
Cool! Glad to see it was useful to other people. I added another post with a little more about the error. On my to-do list is to see what this file looks like in the source and see if this require is the only difference in 1.0.
-
Thanks for posting this Eric - I'm new to Ruby and this saved me a lot of time.
-
Thanks, I needed this fix too.
-
I had installed gem via the package manager, then overwrote it with a downloaded version, and *still* had this problem. Thanks for this.