ruby-build - compile and install Rubies
ruby-build [-v|--verbose] [-k|--keep] definition prefix
rbenv install [-k|--keep] definition
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
ruby-build downloads, builds and installs the Ruby version specified in a definition into a prefix directory. Definitions can be chosen
from the list of installed definitions or by specifying a file path for a definition.
rbenv(1) users can also use the provided rbenv install command, which installs Rubies into the rbenv directory.
List available definitions.
Don't delete source code after installation.
Display compiler messages on standard output.
Show ruby-build version and exit.
Show usage information and exit.
Install Ruby 1.9.3 (MRI, patch level 0) to ~/rubies/mri-1.9.3
$ ruby-build 1.9.3-p0 ~/rubies/mri-1.9.3
Install Ruby Enterprise Edition 1.8.7 (patch level 2011.03) for rbenv(1):
$ rbenv install ree-1.8.7-2011.03
Install Ruby from a custom definition into ~/your-ruby:
$ rbenv install /path/to/your/own/ruby/definition ~/your-ruby
CC Sets the path to the C compiler.
Options that are passed to configure when building a Ruby.
Options that are passed to make when building a Ruby.
Used instead of MAKE_OPTS when MAKE_OPTS is not defined.
TMPDIR Sets the location where ruby-build stores temporary files.
Sets the location in which sources are downloaded and built.
ruby-build is developed by Sam Stephenson <firstname.lastname@example.org>.
This man page was written for the Debian GNU/Linux distribution by Sebastian Boehm <email@example.com> but may be used by others.
June 2012 RUBY-BUILD(1)