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”
Thanks — this worked :)
Thanks man, the require thingie worked, I placed it in /usr/bin/gem
Top man! thanks for the help!