I recently upgraded from Ruby 1.9.3 to version 2.0.0. To do so, I used the following command:
$ rvm install ruby-2.0.0
$ rvm --default use ruby-2.0.0
It successfully installed and set as default ruby-2.0.0; however, when I enter ruby -v
I encounter the error:
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
I know Rails is installed and, before upgrading my version of Ruby, I ran rails -v which returned my current version.
Attempts to Troubleshoot
I followed the solution found on an earlier post and ran the following commands:
gemsets for ruby-1.9.3-p374 (found in /Users/.../.rvm/gems/ruby-1.9.3-p374)
(default)
=> global
rails3tutorial2ndEd
/etc/rvmrc: line 5: install:: command not found
/etc/rvmrc: line 6: update:: command not found
gemsets for ruby-2.0.0-rc1 (found in /Users/.../.rvm/gems/ruby-2.0.0-rc1)
(default)
=> global
rvm use ruby-2.0.0-rc1@global
However, running rails -v
again shows that the issue still persists.
Any help would be greatly appreciated!
Update:
Impatience led me to just re-install Rails which fixed the problem. However, I'm still curious if there was a better way of troubleshooting this without (likely unnecessarily) re-installing Rails.