Tag Archives: tip

RVM Captcha

Suddenly if you face the following error for any rails command like

$rails console

or

$rails -v

/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:861:in `report_activate_error’: Could not find RubyGem rails (>= 0) (Gem::LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:255:in `activate’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1204:in `gem’

Before you start installing Rails and other gems, just check the RVM status.

$rvm list

In my case, the RVM ruby had changed to the default 1.8.7 instead of 1.9.2 on which I was working earlier.

This happened possibly due to Apache restart. Not sure.

Solution:

$ rvm 1.9.2

And we are back to what we were doing!