Links: Homepage
Dependencies: None
Ruby version manager that lets you easily switch between multiple versions of Ruby.
Install
Switch to the /usr/local
folder.
cd /usr/local
Check out rbenv into /usr/local/rbenv
.
git clone git://github.com/sstephenson/rbenv.git rbenv
Shell
Execute the following lines to update your Bash startup script.
echo 'export PATH=/usr/local/rbenv/bin:$PATH' >> ~/.bash_profile
Add the rbenv root folder configuration to your shell.
echo 'export RBENV_ROOT=/usr/local/rbenv' >> ~/.bash_profile
Add rbenv init
to your shell to enable shims and autocompletion.
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
Load the new shell configurations.
source ~/.bash_profile
Install Ruby Versions
To install Ruby versions, check the sections on installing Ruby.
Upgrade
To upgrade to the latest version of rbenv, use git pull.
cd /usr/local/rbenv
git pull