hsiu
hsiu

Reputation: 1

Can not load any gems after upgrade

I'm trying to move from ruby 1.8 to 1.9 something.

I have tried installing the newer ruby in a number of ways - with rvm, with apt-get, etc. No matter which way I do it, once I've got /usr/bin/ruby pointing at that, no gems can be loaded ("no such file to load").

I have tried reinstalling them, both as super user and regular, and the gem install command finishes successfully, but it still doesn't find them.

I have also installed rubygems1.9.1

Can someone please tell me what's wrong. This is insanely frustrating - I have installed every gem several times in many many places and yet it doesn't find any of them. I have tried setting GEMS_DIR to no avail as well.

Upvotes: 0

Views: 96

Answers (1)

Mladen Jablanović
Mladen Jablanović

Reputation: 44110

  1. Remove every Ruby installation you got. Be sure there are no 'ruby' and 'gem' executables anywhere.
  2. Install RVM and check if it went well
  3. Install all the dependencies listed in rvm notes output.
  4. Do rvm install 1.9.2 and start installing your gems.

Upvotes: 1

Related Questions