Skip to content

Instantly share code, notes, and snippets.

@tomordonez
Created January 21, 2013 21:51
Show Gist options
  • Save tomordonez/4589813 to your computer and use it in GitHub Desktop.
Save tomordonez/4589813 to your computer and use it in GitHub Desktop.
Installing Ruby on Rails on a MAC
(1) Install gcc for the MAC OSX. (https://github.com/kennethreitz/osx-gcc-installer), scroll down Option1, then download 10.8.
(2) Install git for MAC: http://code.google.com/p/git-osx-installer. Go to downloads, then latest upload.
(3) Install RVM, following this https://rvm.io/rvm/install/, enter the following commands on the terminal
\curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
To see that RVM was installed run this command:
type rvm | head -n 1
It should return:
rvm is a function
(4) Install Ruby, run the following command:
rvm install 1.9.2
rvm use 1.9.2
Check that Ruby was installed:
ruby -v
It should return the version 1.9.2
To use that version as default:
rvm use 1.9.2 --default
(5) Install Rails
gem install rails -v 3.2.11
Check it was installed, it should return the version number
rails -v
(6) You can also install Textmate instead of Sublime 2. Easier, no need to setup anything. "Convention over configuration"
DONE
If this doesn't work or you have questions tweet me @tomordonez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment