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
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.
Related Topics
Activerecord Objects in Hashes Aren't Garbage Collected -- a Bug or a Sort of Caching Feature
Uninstall Ruby Version from Rbenv
Reading the First Line of a File in Ruby
Best Way to Generate Order Numbers for an Online Store
Building a Hash in a Conditional Way
How to Check If a Number Is Included in a Range (In One Statement)
What Is Double Method in Rspec For
Disable Rvm or Use Ruby Which Was Installed Without Rvm
Ruby: Explicit Scoping on a Class Definition
Xcode - Configure: Error: No Acceptable C Compiler Found in $Path
Is There a Good Admin Generator for Ruby on Rails
Rails 5.2 Active Storage Add Custom Attributes
Creating an Empty File in Ruby: "Touch" Equivalent
When Is It Better to Use a Struct Rather Than a Hash in Ruby