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 and Ruby on Rails on OSX 10.9(Mavericks)

I am currently on the developer preview version of OS X 10.9 and am trying to begin learning Ruby on rails. The ruby installer however will not install since my OS version is too new. Does anyone know a alternative method of installing or a workaround?

Thanks.

2 Answers

Do you have git installed? If not, do that first.

Do the following in your Terminal:

\curl -L https://get.rvm.io | bash -s stable --ruby

that should install rvm with ruby 2.0. Next you need to install rails 3.2.14 (not the latest version)

in terminal again, type:

gem install rails -v 3.2.14

Try that out and let me know how it goes.

If that doesnt work fire me an email and I'll walk you through the long and boring part of installing ruby.

r.crawfordwilson@gmail.com

Alright, thank you for your response. I will try your suggested steps soon.

When I try to initialize the rvm by using "rvm use 2.0.0" in terminal I get the following: "Macbook-Air:~ thorsonjustin$ rvm use 2.0.0 ruby-2.0.0-p247 is not installed. To install do: 'rvm install ruby-2.0.0-p247'"

This may be due to the error I got when installing rvm and ruby 2.0 via the terminal command you provided before. Here is the last part of that install process in terminal:

"Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-2.0.0-p247. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password. Installing macports......................................................................................................................................................................................................... Error running 'requirements_osx_port_install_port', please read /Users/thorsonjustin/.rvm/log/ruby-2.0.0-p247/1375925512_port_install.log Requirements installation failed with status: 1."

Vijay Rangan
Vijay Rangan
7,543 Points

I get the same error. pls do help. thanks