Skip to content

Instantly share code, notes, and snippets.

@jahio
Last active August 29, 2015 14:16
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 jahio/3fd74173413dc53467fa to your computer and use it in GitHub Desktop.
Save jahio/3fd74173413dc53467fa to your computer and use it in GitHub Desktop.
Install modern Ruby on Ubuntu
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
@jahio
Copy link
Author

jahio commented Mar 2, 2015

A quick code snippet for installing a more modern Ruby on Ubuntu Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment