Here you can get the latest Ruby distributions in your favorite flavor. The current stable version is 1.8.7. Please be sure to read Ruby’s License.

Ruby Source Code

Installing from the source code is a great solution for when you are comfortable enough with your platform and perhaps need specific settings for your environment. It’s also a good solution in the event that there are no other premade packages for your platform.

  • Ruby 1.8.7-p22 (md5: 2d57acee0d80531e14ec0f6826a1f9fb) Stable Version (recommended)
  • Stable Snapshot This is tar’ed and gzip’ed file of the latest stable CVS. It should be better than the last stable release.
  • Nightly Snapshot This is tar’ed and gzip’ed file of the latest CVS. It may contain unfixed problems.

For information about the Ruby Subversion repository, see our Ruby Core page.

Ruby on Windows

The Windows platform has several options for installing Ruby. The first option is simply installing the compiled binaries. The second option is to use the one-click installer. If you’re unsure about how to install Ruby, the one-click installer may be the best option for you. (In addition to Ruby, the one-click installer also comes with a bunch of additional libraries built in.)

Ruby On Linux

Depending on the distribution you are using, there are several ways to install Ruby. The first option is simply to download the source code above and compile by hand. However, on some platforms, there are package management solutions that make installing Ruby extremely easy.

For example, on Debian or Ubuntu apt-get provides an easy and elegant solution:

% sudo apt-get install ruby irb rdoc

For irb and rdoc you will need to enable the universe repository.

Ruby On OS X

Ruby 1.8.7 is fully supported in Mac OS X Leopard including Ruby on Rails, Mongrel, Capistrano, and many other popular Ruby gems (packages). For details, see the Ruby wiki at MacOS Forge.

Mac OS X Tiger is packaged with version 1.8.2 of Ruby, but, for those who haven’t upgraded to Leopard, there are a number of options for installing the latest version of Ruby. Locomotive is a nice choice if you are looking for something to get you up and running quickly for Rails development. Using MacPorts or Fink might be a little nicer for the more technically savvy.

On MacPorts, you can install Ruby with…

% port install ruby

Fink has a graphical interface (using Fink Commander) for installing Ruby.

Also, since OS X is based on Unix, downloading and installing from the source is just as easy and effective as the other solutions.

For a detailed look at installing Ruby (and Rails), Dan Benjamin’s excellent article Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X will get you up and running very quickly.