Home > Installation > Ruby Installation
login

© Metadot Corporation

Getting and Installing Ruby.

These are just brief instructions on getting and installing Ruby. If you have trouble, contact the Ruby mailing list and ask for help.

There are instructions for Linux, Mac OS X, FreeBSD, UNIX, and Windows.

Linux

Most Linux distributions come with Ruby pre-installed. If you don't already have it, here is how to get it:

RPM install Download an RPM from RPM Find and install with
# rpm -Uhv ruby-*.rpm
Gentoo Linux # emerge ruby
Debian Linux # apt-get install ruby
Source Go to the Source section.

Mac OS X

Ruby 1.8.6 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. There is also a One-click Installer for Mac OS X now. 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.

 

FreeBSD

Ruby is part of the FreeBSD ports collection. You can install it with:
# cd /usr/ports/lang/ruby
# make && make install

Source (good for all UNIX)

As of this writing, the latest source was ruby-1.8.6-p111.tar.gz.

To install, just do the usual:
# configure
# make
# make install

You can get the latest source at http://www.ruby-lang.org

Windows

As of this writing, the latest version available was 1.8.6. Just download Ruby186-26.exe and run the installer.

You can find the latest version at http://rubyinstaller.sourceforge.net/