Skip to content

Instantly share code, notes, and snippets.

@karlbaillie
Last active March 3, 2022 22:44
Show Gist options
  • Save karlbaillie/de80e3c1c4658f05b77ff52c0bb23bef to your computer and use it in GitHub Desktop.
Save karlbaillie/de80e3c1c4658f05b77ff52c0bb23bef to your computer and use it in GitHub Desktop.
Install rbenv on Ubuntu 20.04
cd ~
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
rbenv init
sudo apt-get install -y libssl-dev zlib1g-dev
rbenv install 2.7.1
rbenv global 2.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment