Skip to content

Instantly share code, notes, and snippets.

@qb0C80aE
Created May 11, 2017 00:06
Show Gist options
  • Save qb0C80aE/dd53e45d885e0ec44919bc8d24d72055 to your computer and use it in GitHub Desktop.
Save qb0C80aE/dd53e45d885e0ec44919bc8d24d72055 to your computer and use it in GitHub Desktop.
rbenv on Ubuntu 16.04
#!/bin/bash
RUBY_VERSION=2.3.4
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install ${RUBY_VERSION}
rbenv global ${RUBY_VERSION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment