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
Yosef Waysman
3,702 PointsInstalling Ruby on Rails on Mac OS X 10.9 Mavericks
I've tried to follow the instructions here https://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/getting-started-with-rails/installing-rails-mac ,but it seems that the latest installer on the Rails Installer project doesn't support Mac OS X 10.9. So I can't install rails with the Rails Installer.
Any suggestions?
12 Answers
James Barnett
39,199 PointsGive this a shot \curl -L https://get.rvm.io | bash -s stable --rails
Daniel Kehoe
33 PointsI've written an in depth guide to installing Ruby on Rails on Mac OS X 10.9 Mavericks. It's here:
Install Ruby on Rails ยท Mac OS X Mavericks
It explains how to set up the Mac (with Xcode Command Tools), install Ruby with RVM (the Ruby Version Manager), and install Rails, with advice about updating important gems and setting up a professional development environment.
laurie gloge
8,593 PointsI am using this now. It works! Thank you very much for this document :)
peyton caseria
Courses Plus Student 12,281 PointsI've spoken to apple support and I come up with the answer that I'll need to user a workaround framework for ruby on rails. I was wondering if this is a big issue for getting into schools such as devpointlabs.com
James Barnett
39,199 PointsCheck out http://www.installrails.com/
Robert Jones
Courses Plus Student 2,718 PointsJames I used your first suggestion and after installing and attempting to follow along with the video for "Generate a Rails Application" I am getting this message:
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use /bin/bash --login as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
This appears after typing 'rvm use 1.9.3'
Any thoughts?
peyton caseria
Courses Plus Student 12,281 PointsI think you need to change how you call rvm by using a different command, if you don't find something on that I'd suggest trouble shooting your system specs, are you on mac?
Brandon Barrette
20,485 PointsInstall rails manually. A quick google search reveals:
Chip Beasley
5,974 PointsI too am trying to do this. I keep getting this error:
Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-2.0.0-p353. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. You requested building with '/usr/bin/gcc-4.2' but it is not in your path.
Thanks
James Barnett
39,199 PointsCheck out this step-by-step tutorial on installing Ruby on Rails under OS X Mavericks
You can skip the section on installing MySQL if you want as it's not used in the Treehouse course.
If you have issues let me know which steps you completed successfully and at which point you got stuck.
Chip Beasley
5,974 PointsHello James-
So I went through all the steps, got to the step where I install Ruby 2.0.0 and got this again:
rvm install ruby-2.0.0-p247
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. You requested building with '/usr/bin/gcc-4.2' but it is not in your path.
James Barnett
39,199 PointsDid you remember to edit your .bashrc file to include the path to gcc?
Chip Beasley
5,974 PointsI added these lines to the .bashrc file:
CC=/usr/local/bin/gcc-4.9 CPP=/usr/local/bin/cpp-4.9 CXX=/usr/local/bin/g++-4.9
But got the same message when installing ruby-2.0.0-p247 So confused.
John Corser
5,660 PointsMake sure you have the latest version of xcode installed before starting the whole process. Also check any errors you might. Try 'brew doctor' to see what errors that finds, and try to resolve them.
John Corser
5,660 PointsAlso important to note, if you're trying to follow along with the tutorials here, use ruby 1.9.3 instead of 2.0.0
Chip Beasley
5,974 PointsSo, this is a game that my laptop is playing with me to make me slowly descend into madness. I followed all the advice but still get the "no path to gcc" error above. Actually, at one point I had ruby 1.9.3, 2.0.0 and rails 4.0 installed, but then every time I exited terminal rails was not installed.
Maybe I should uninstall everything and start over?
Andre Morgan
994 PointsNone of this worked for me. Can it setup using VagrantUp? http://www.vagrantup.com/ Also have the lessons reflect that?
James Barnett
39,199 PointsDid you see the installing a ruby development environment badge, it uses vagrant.
Christo Steyn
1,849 Points@James, I followed the tutorial you recommended here: http://www.computersnyou.com/2673/2013/10/install-ruby-rails-macos-x-mavericks-10-9-mysql-step-step/ I don't have a "bashrc" file in my home dir. Is it as simple and safe as creating it ?
James Barnett
39,199 PointsIn Unix-like systems such as OS X, files that begin with a . are hidden from view.
To see them run ls -a.
Christo Steyn
1,849 PointsYes I meant ".bashrc", I don't have it, so I created the file. Thats ok right ?
Brent Sullivan
9,877 PointsFor anyone looking to install, I found the following enormously helpful:
peyton caseria
Courses Plus Student 12,281 Pointsright now I'm wondering if the suggested on rails installer.org will work for my mac os x 10.9 it says their installer shouldn't be used until further notice on os x10.9 mavericks.
peyton caseria
Courses Plus Student 12,281 Pointsthank you, that worked like a charm. Nice and smooth sailing, Which is why I became interested in rails in the first place.
Andrew Lee
14,448 PointsAndrew Lee
14,448 PointsError running 'requirements_osx_port_install_port', please read /Users/andyrewlee/.rvm/log/1385587856_ruby-2.0.0-p353/port_install.log Requirements installation failed with status: 1.
that's what i got when i tried it hmm..
hossein tootoonchy
2,675 Pointshossein tootoonchy
2,675 PointsThis worked for me like a charm ! thank you James.
Jaken Herman
2,787 PointsJaken Herman
2,787 Points+1. Thank you, sir