Created
May 11, 2017 00:06
-
-
Save qb0C80aE/dd53e45d885e0ec44919bc8d24d72055 to your computer and use it in GitHub Desktop.
rbenv on Ubuntu 16.04
This file contains hidden or 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
#!/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