Install rbenv and friends and update all of them when you want to ...
Switch branches/tags
Nothing to show
Pull request Compare This branch is 96 commits ahead, 4 commits behind igmb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

rbenv installer

This tool is used to install rbenv and some plugins. It also provides scripts to install required software to be able to compile Ruby.

Installed plugins are rbenv-vars, ruby-build & rbenv-installer.

Before Installing

Install git and curl:

sudo apt-get -y install git-core curl

Make sure your user has sudo privileges.


Install rbenv and friends by running:

curl -L | bash

Installing a Ruby

Install Ruby 1.9.3-p125 and make it global:

rbenv install 1.9.3-p125
rbenv global 1.9.3-p125


Update rbenv and plugins provided by the installer running:

rbenv update


If you are installing rbenv in Ubuntu you'll probably need to install required packages first:

rbenv bootstrap-ubuntu-10-04
rbenv bootstrap-ubuntu-11-10

To update RubyGems and install bundler and rake:

rbenv bootstrap

Patch: Ruby Packages

Install patched ruby-build by using the following command:

rbenv patch-ruby-build

Now when you install a new Ruby it will try to download a package from a RUBY_PACKAGE_REPO. If no packages available it will compile the package as usual.


You can always add the previous export into your .bashrc to install always from that package repo.

About rbenv

rbenv source code is available at