Rails keeps telling me that it's not currently installed
I had this problem today. Not completely related to your question, but since this page is what comes up in Google when I search for "Rails is not currently installed on this system", I thought I would add my answer:
What happened is that I was using ruby 1.9.2 with rails for a while, but then I needed to use ruby 1.8.7 to run some other script that I found.
Afterwards, I wanted to change by system back to using 1.9.2, and that's where the problem started:
$ rvm list
=> ruby-1.8.7-p352 [ x86_64 ]
ruby-1.9.2-p290 [ x86_64 ]
$ rvm use 1.9.2
I thought that would do the trick. But no, that gives me the "Rails is not currently installed on this system" message.
What I had forgotten is that I had configured rails using an rvm gemset. So I needed to specify the correct gemset when I was selecting which ruby version to make active.
$ rvm gemset list_all
gemsets for ruby-1.8.7-p352 (found in /Users/asgeo1/.rvm/gems/ruby-1.8.7-p352)
global
gemsets for ruby-1.9.2-p290 (found in /Users/asgeo1/.rvm/gems/ruby-1.9.2-p290)
global
rails31
$ rvm use ruby-1.9.2-p290@rails31
That did the trick.
Mac OS X Mountain Lion Rails is not currently installed on this system.
Use RVM http://rvm.io or rbenv to install newer Rails versions than what come pre-installed with OS X.
Follow examples on the site https://rvm.io/rvm/install/ but basically:
Install RVM: $ \curl -L https://get.rvm.io | bash -s stable
You can then $rvm list known
to see what Rubies are available to you (lots). And simply $rvm install 1.9.3
to get the most current version of Ruby (which as of this writing is ruby-1.9.3-p327
)
Set that ruby as your default $rvm --default use 1.9.3
Create a default gemset to store your gems $rvm use 1.9.3@mygemset --create --default
Then install Rails $ gem install rails
will get you current which today is same as typing gem install rails -v 3.2.9
Gemset: Rails is not currently installed on this system.
macbook$ rvm use ruby-1.9.3-p194
Using /Users/macbook/.rvm/gems/ruby-1.9.3-p194
macbook$ rails --version
Rails 3.2.11
Related Topics
Find Out If Current Time Is Between Two Times
Restarting a Loop from the Top
How to Write a Switch Statement in Ruby
How to Parse Json With Ruby on Rails
What's the Difference Between Ruby'S Dup and Clone Methods
Trying to Learn/Understand Ruby Setter and Getter Methods
How to Install Sqlite3 For Ruby on Windows
Gem Installation Error: You Have to Install Development Tools First (Windows)
What Does 'Monkey Patching' Exactly Mean in Ruby
How to Extract Url Parameters from a Url With Ruby or Rails
Cannot Load Such File - Script/Rails: Getting This Error While Remote Debugging Through Rubymine
How to 'Validate' on Destroy in Rails
How to Search Within an Array of Hashes by Hash Values in Ruby
Understanding Private Methods in Ruby