Installing Ruby on Rails 3.1 on Mac OS X 10.6 Notes

My notes for installing Ruby on Rails on 3.1 on Mac OS X 10.6.  This is not a tutorial or a how-to, just the notes I took as I tried to get Ruby on Rails up and running.

Rails + Mac

1) By default Ruby 1.8.7 is installed on the Mac and I’ve installed X-Code 4.

2) Surf the web a bit and find this website that talks about Mac Ports.  Download and install Mac Ports.

3) In a terminal install ruby via the ports by doing:

sudo port install ruby19

5) Ruby 1.8.7 is still installed and is still the default.  Read on how to change that and find out about RVM.  Try RVM instead of MacPorts.  First remove Ruby 1.9.2 installed by MacPorts:

sudo port uninstall ruby19

Then uninstall MacPorts.  More details here.

sudo port –f uninstall installed

You can also do some clean-up by running the following:

sudo rm -rf
/opt/local /Applications/DarwinPorts

5) Install RVM.

bash << (curl -s href="">

Then update your bash profile:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile

Now if you open a new terminal window you should be able to type in RVM and get something.

6) Install Ruby 1.9.2:

rvm install 1.9.2

7)      Then make ruby 1.9.2 the default ruby to use:

rvm use 1.9.2</pre>
ruby –v

The last command ruby –v should now say 1.9.2.

8)      Gems should be installed already.  Update it to the latest version

gem update --system

9)      Install Ruby on Rails using Ruby Gems:

gem install rails
This entry was posted in Notes and tagged , . Bookmark the permalink.