Skip to content
fnichol edited this page Mar 12, 2011 · 23 revisions

Follow the directions below to setup Ruby and Rails on your box. Once you're up and running you should go get introduced to Ruby!

Installing Ruby on Mac OS X

Mac OS X ships with Ruby pre-installed, however it's an older version that's out-dated for most people's uses. It's also missing some components neccesary to run Rails out of the box.

The best directions we've found for install Ruby and Rails are from the Pragmatic Programmer. You can also follow our directions below for the quick and dirty guide.

Installing Ruby with RVM

The Ruby Version Manager, or RVM, is by far the best way to install Ruby on your Apple computer. RVM allows you to quickly install multiple versions of Ruby on your computer and can be installed with one command:

bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

If you run into problems consult their detailed RVM installation guide.

After you've installed RVM, you can install Ruby 1.9.2 with:

rvm install 1.9.2

This will download the source code for Ruby, compile and install it. Be prepared to wait a few minutes if you're using a slower computer. That's it, you're ready to go!

RVM Support

If you run into errors while installing RVM, first run a Google search. Chances are there others who have run into the same problem. If your Google searches don't resolve your problem, ask a Ruby friend. If that still leaves you high and dry, you can ask Wayne E Seguin (the creator of RVM). Visit http://rvm.beginrescueend.com/support/irc/ for more information. Wayne is a very friendly guy who is actually on IRC constantly and loves helping people install and use RVM. If your problem ends up being with the RVM source code, he will (usually) fix it and push up new source code to Git while he talks to you on RVM. Awesome.

Installing Ruby on Ubuntu Linux

Pragmatic Programmers come through again with some great directions for installing Ruby and Rails on Ubuntu.

Installing Ruby on Windows

Installing Ruby on Windows used to be a challenge, however there any now two excellent options that make this process painless.

RubyInstaller.org (recommended)

The Rails Installer for Windows is a new project headed up by the folks at Engine Yard - particularly by Wayne E Seguin (the creator of RVM) and Dr. Nic. Rails Installer for Windows will get you quickly setup with:

  • Ruby 1.8.7-p330
  • Rails 3.0.3
  • Git 1.7.3.1
  • SQLite 3.7.3
  • DevKit

Download and follow the directions on their site to get started. We're encouraging members to use Ruby 1.9.2, though Ruby 1.8.7 is currently the only available option provided with Rails Installer.

jRuby

As the name implies jRuby provides Ruby a home on top of the Java Runtime Environment. It's quick to install and we recommend you get the Ruby 1.9.2 release. This doesn't include Rails, git or a database which will all need to be installed separately.

Note that one of the jRuby installers also includes Java if you don't have it already installed.