I have upgraded ruby using the following commands with rvm:
rvm get head
rvm install 1.9.3
rvm reload
rvm use 1.9.3 --default
Now when I run rails s I get the following error message:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:827:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:261:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:68:in `gem'
from /usr/bin/rails:18
If I run which ruby, gem environment, and ruby -v I get coherent output. Could anyone help me understand what is going wrong with my application?
Have you tried running
gem install rails?Using RVM with ruby gems means you can have binaries in your PATH (including the
railsbinary) for gems that are not installed.This is what your error looks like.
I hope a
bundle installorgem install railswill fix your problem.