Last active
August 29, 2015 14:16
-
-
Save jahio/3fd74173413dc53467fa to your computer and use it in GitHub Desktop.
Install modern Ruby on Ubuntu
This file contains 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
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install -y build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev tmux vim git libxml2-dev libxslt1-dev libpq-dev | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
source ~/.profile && rbenv install 2.2.1 && rbenv global 2.2.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A quick code snippet for installing a more modern Ruby on Ubuntu Linux.