rubyondine
rubyondine

Reputation: 33

Ruby on Rails : RVM and Rubygems Error

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 />

Upvotes: 3

Views: 1748

Answers (2)

Chitrank Samaiya
Chitrank Samaiya

Reputation: 841

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

   rvm @global do gem uninstall -ax rubygems-bundler

Upvotes: 7

Giridhar Bandi
Giridhar Bandi

Reputation: 1323

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

Upvotes: 5

Related Questions