Last active
June 28, 2019 17:40
-
-
Save derigible/318c39562f2dc9ead6e1ed40ed798eda to your computer and use it in GitHub Desktop.
Adding rbenv to Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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