Skip to content

Instantly share code, notes, and snippets.

@derigible
Last active June 28, 2019 17:40
Show Gist options
  • Save derigible/318c39562f2dc9ead6e1ed40ed798eda to your computer and use it in GitHub Desktop.
Save derigible/318c39562f2dc9ead6e1ed40ed798eda to your computer and use it in GitHub Desktop.
Adding rbenv to Ubuntu
sudo apt install rbenv
# Installing ruby-build for latest ruby
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
# List possible installs
rbenv install -l
# Install ruby you want
rbenv install <ruby-version>
# set ruby env globally
rbenv global <ruby-version>
# init rbenv so it controls your shells ruby
eval "$(rbenv init -)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment