Skip to content

Instantly share code, notes, and snippets.

@jefflunt
Last active March 24, 2019 13:47
Show Gist options
  • Save jefflunt/a6201c87110740f0d1afabf3d418fd75 to your computer and use it in GitHub Desktop.
Save jefflunt/a6201c87110740f0d1afabf3d418fd75 to your computer and use it in GitHub Desktop.
ubuntu ruby 2.5.1 install w/rbenv
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev libpq-dev build-essential
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install 2.5.1
git clone git://github.com/jf/rbenv-gemset.git $HOME/.rbenv/plugins/rbenv-gemset
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment