Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Installing Ruby on Rails on Mac OS X 10.9

I have been having vast amounts of trouble trying to install Ruby on Rails on Mac OS X 10.9. The video on how to install Ruby on Macs does not help as the application that is referenced will not install on my computer, because it was built for OS X 10.8. Any help would be appreciated. PS - I have downloaded Xcode for Mavericks and RVM using instructions from a different website.

4 Answers

Okay, get ready for the giant instruction set:

  1. type sudo gem update --system && sudo gem install rails in terminal

There is no step 2.

Awesome, it worked. Thanks Paul. Is this explained anywhere on Treehouse...did I miss something?

10.9 Mavericks changed the way Ruby is handled on the system and updates it to 2.0 which is compatible with Rails 4. In the long term, you might still want to run Homebrew or rbenv or RVM to manage your Ruby (I personally use rbenv) so you can update Ruby freely without interfering with the OS, but Apple moving to Ruby 2.0 makes things a lot more simple for developers trying to get started.

And since the forum seems to not be working with Chrome 31 and I can't edit, I just want to say the reason it was so complex before was that 10.8 and lower used Ruby 1.8.7 which is incompatible with newer Rails versions. It wasn't only nice to have a Ruby update, it was required.

Paul Graham - There was an issue with the forum for few minutes, I noticed it too, it's fixed now.