A beginners guide to installing Ruby on Rials on Mac OSX 10.8.
Note: This is guide is not intended as a complete tutorial. Rather it is a simple step by step guide for using along side existing tutorials depending on your level of development skills. Authored by the Ruby on Rials Developer NYC Team at DigiMix Web Design & Development New York, NY.
1. Install Xcode, updated Xcode, install Xcode Command Line Tools
- Start Xcode on the Mac.
- Choose Preferences from the Xcode menu.
- In the General panel, click Downloads.
- On the Downloads window, choose the Components tab.
- Click the Install button next to Command Line Tools.
2. Install Homebrew and apple-gcc42z
1 2 3 4 5 6 7 |
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" brew tap homebrew/dupes brew install apple-gcc42 sudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc-4.2 |
3. Install RVM
1 |
\curl -L https://get.rvm.io | bash -s stable --ruby |
4. Install Ruby
1 |
rvm install ruby 2.0.0 |
5. Use the version of Ruby you just installed
1 |
rvm use 2.0.0 |
6. Install Rails
1 |
gem install rails |
References:
- Rackspace Blog
- Ruby
- RVM
- Stack Overflow
- Embarcadero