Ruby and rbenv
- Install rbenv (via "basic github checkout")
- Install ruby-build as an rbenv plugin.
- At this point you made need to run
sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev
before proceeding rbenv install -l
lists available versions of Ruby. Pick one to install.- Set that version to global.
You can update the Ruby versions available to rbenv by running rbenv_upgrade
(found in bashrc
).
function rbenv_upgrade {
cd ~/.rbenv && git pull
cd ~/.rbenv/plugins/ruby-build && git pull
cd ~
}
Alternative Ruby version managers
Frum is a new Ruby version manager written in Rust.
RVM is another, more well-known option.