rbenv-install-remote is a ruby-build
and rbenv plugin that hooks into
rbenv install
command to download and install remote build definitions.
First make sure you have an updated ruby-build
, as you'll need the
support for hooks
in place.
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
Installing rbenv-install-remote as an rbenv plugin will allow you to use
rbenv install
with remote build definitions.
$ mkdir -p ~/.rbenv/plugins
$ cd ~/.rbenv/plugins
$ git clone git://github.com/fgrehm/rbenv-install-remote.git
As this plugin will only hook into ruby-build
and download the custom definition
before building, please refer to ruby-build
to find out its supported parameters. With rbenv-install-remote
you'll be able
to:
$ rbenv install https://raw.github.com/gist/my-ruby-version
And if everything goes fine, this will provide a my-ruby-version
for use
with rbenv.
You can also specify a version name if the url isn't enough:
$ RUBY_NAME=my-ruby-version rbenv install https://raw.github.com/gist/some-crazy-url.sh
If you wanna know more about custom definitions, see the ruby-build built-in definitions as a starting point for definition files.
These 2 definitions will allow you to install REE on Ubuntu 12.04 with the patch
that will enable tcmalloc support so that you won't have to use
CONFIGURE_OPTS="--no-tcmalloc"
when running rbenv install
.
$ rbenv install https://gist.github.com/fgrehm/3345650/raw/22e1b76faf6ea63c8083deba224bae5fb168b020/ree-1.8.7-2011.03
$ rbenv install https://gist.github.com/fgrehm/3345650/raw/d0d30531ff380135d6a0154efb7f4f10cd2cc6ca/ree-1.8.7-2012.02
This one is a patched 1.9.3-p194
for 30% faster Rails boot. See
https://gist.github.com/1688857 for more information.
$ RUBY_NAME=1.9.3-p194-patched rbenv install https://raw.github.com/gist/1688857/2-1.9.3-p194-patched.sh
There is also an updated version of the patch
that applies to 1.9.3-p286
as well.
$ rbenv install https://raw.github.com/gist/7f4e8a98c16e9f67ecba/1.9.3-p194-falcon
$ rbenv install https://raw.github.com/gist/7f4e8a98c16e9f67ecba/1.9.3-p286-falcon
For 1.9.3-p327
:
$ RUBY_NAME=1.9.3-p327-patched rbenv install https://raw.github.com/gist/1688857/2-1.9.3-p327-patched.sh
If you have a custom definition to share, please send me the link or a pull request adding it to the list above ;)
MIT License.
Copyright (c) 2012-2013 Fábio Rehm