Here you can get the latest Ruby distributions in your favorite flavor. The current stable version is 1.9.2. 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.9.2-p0 (md5: 755aba44607c580fddc25e7c89260460) Stable Version (recommended)
- Stable Snapshot This is tar’ed and gzip’ed file of the latest stable SVN. It should be better than the last stable release.
- Nightly Snapshot This is tar’ed and gzip’ed file of the latest SVN. 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 to install Ruby. The first option is to use the RubyInstaller, an installer that contains compiled binaries. The second option is usage of packaged executables and binaries. If you’re unsure about how to install Ruby, the first option might be the best for you.
- Ruby 1.8.6-p398 RubyInstaller
(md5: 233d6b3ddc4c61436b075b51254cd138) Stable version (recommended)
- Ruby 1.8.7-p302 RubyInstaller
(md5: 9391a3dddbbda3ee8aa3bb368fdc5279) Stable version (recommended)
- Ruby 1.9.1-p430 RubyInstaller
(md5: 86ac589a955898c3163b161d81750a05) Stable version (recommended)
- Ruby 1.8.7-p249 Binary
(md5: 4fd37b0b4b21a042cae7f5f0a8daad16) Stable version
- Ruby 1.9.1-p378 Binary
(md5: 7d14a918cc8d243d3e2c409aff41f454) Stable version
Please note that using the above indicated binaries will require manual download and installation of additional components detailed on this page. Please ensure you have followed and performed these steps prior reporting a bug.
The RubyInstaller does not require these additional tasks.
Please also investigate the use of pik which eases the process of installing and maintaining concurrent versions of both ruby and gems on Windows.
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:
The above command installs the current stable version of Ruby 1.9.1. If you prefer to install a Ruby 1.8 version, you can use:% sudo apt-get install ruby-full
For irb and rdoc you will need to enable the universe repository.
Please also investigate the use of
rvm, the Ruby Version Manager, which eases the process of installing and maintaining concurrent versions of both ruby and gems.
Ruby On 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. 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.
Ruby On Solaris and OpenSolaris
Ruby 1.8.7 is available for Solaris 8 through Solaris 10 on Sunfreeware and Ruby 1.8.7 is available at Blastwave. An optimized Ruby on Rails stack for Solaris 10 is available as Coolstack from Sun’s Cooltools project.
To install Ruby on OpenSolaris, please use the Image Packaging System, or IPS client. This will install the latest Ruby binaries and Rubygems directly from the OpenSolaris network repository. It’s easy:% pfexec pkg install SUNWruby18
This will install Ruby, Rubygems, common extensions and their supporting libraries. This package also contains DTrace support and performance optimizations. The locations of various artifacts are described in the Ruby OpenSolaris ARC Case.
The other OpenSolaris distribution, called the Solaris Express Community Edition or SXCE comes with Ruby preinstalled. The version, location etc., are the same as with the vanilla OpenSolaris distribution, and are documented in the above mentioned ARC case.
To install SVR4 packages manually, please visit the RubyOpenSolaris project @ Rubyforge.