3

I had just done "rvm rubygems 1.3.5" and "gem install rails -v 2.2.2", and both worked correctly and I was able to use rails for awhile.

Now it seems like rails and rubygems just suddenly disappeared, so I reinstalled rubygem, but now trying to reinstall rails, I'm getting

ERROR:  While executing gem (NameError) uninitialized constant gem::Installer::ENV_PATHS

I get the same error when trying to do

gem update --system

Would appreciate any help.

And my

gem list shows rails(2.2.2)

I'm trying to find other people with similar issues, and looks like it might have something to do with GEM PATH but I'm not sure where to go from there. In "gem environment" I get this for GEM PATHS:

~/.rvm/gems/ruby-1.8.7-p371 <br />
~/.rvm/gems/ruby-1.8.7-p371@global <br />
4
  • Which ruby version you have used? I think it may be because of you used old ruby version.
    – Sachin R
    Feb 25, 2013 at 6:37
  • USe "rvm list" "ruby -v" "rvm use 1.9.2"
    – Sachin R
    Feb 25, 2013 at 6:39
  • 1.8.7, but it was used correctly early on. I'm trying to find other people with similar issues, and looks like it might have something to do with GEM PATH but I'm not sure where to go from there. In "gem environment" I get this for GEM PATHS: ~/.rvm/gems/ruby-1.8.7-p371 ~/.rvm/gems/ruby-1.8.7-p371@global
    – rubyondine
    Feb 25, 2013 at 6:40
  • I have to use 1.8.7, nothing more current, so that's not an option.
    – rubyondine
    Feb 25, 2013 at 6:41

2 Answers 2

7

Type below command in your console.This worked for me.

   rvm @global do gem uninstall -ax rubygems-bundler
5

I faced same issue with 1.3.5 please upgrade your rubygems version to 1.3.7 or 1.4.2

if you are using RVM

rvm install rubygems 1.4.2

or else try

sudo gem update --system 1.4.2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.