use ruby-build

Fixes #294
This commit is contained in:
Oscar Del Ben 2012-12-14 08:42:10 -08:00 committed by Mislav Marohnić
parent 1ebcbd92e2
commit c3fe192243

View file

@ -128,24 +128,16 @@ easy to fork and contribute any changes back upstream.
$ exec $SHELL -l $ exec $SHELL -l
~~~ ~~~
5. Install Ruby versions into `~/.rbenv/versions`. For example, to 5. Install [ruby-build][], which provides an `rbenv install`
manually compile Ruby [from source](https://github.com/ruby/ruby), command that simplifies the process of installing new Ruby versions.
download it and run:
~~~ sh
$ [ -f ./configure ] || autoconf
$ ./configure --prefix=$HOME/.rbenv/versions/1.9.3-p327
$ make
$ make install
~~~
The [ruby-build][] project, however, provides an `rbenv install`
command that simplifies the process of installing new Ruby versions:
~~~ ~~~
$ rbenv install 1.9.3-p327 $ rbenv install 1.9.3-p327
~~~ ~~~
As an alternative, you can download and compile Ruby yourself into
`~/.rbenv/versions/`.
6. Rebuild the shim binaries. You should do this any time you install 6. Rebuild the shim binaries. You should do this any time you install
a new Ruby binary (for example, when installing a new Ruby version, a new Ruby binary (for example, when installing a new Ruby version,
or when installing a gem that provides a binary). or when installing a gem that provides a binary).