Skip to content

Instantly share code, notes, and snippets.

@jefflunt
Last active March 24, 2019 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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