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.


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

Mac OS X comes with Ruby pre-installed. If you don't have it, you can get a binary from the Apple download site.

To install from source, go to the Source section.


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.6.8.tar.gz. You can get a preview of the upcomming version 1.8.0 at ruby-1.8.0-preview1.tar.gz

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

You can get the latest source at


As of this writing, the latest version available was 1.6.8. Just download Ruby168-8.exe and run the installer.

You can find the latest version at