Skip to content

Instantly share code, notes, and snippets.

@feifanzhou
Created June 6, 2015 01:39
Show Gist options
  • Save feifanzhou/7db49cd1a49881ebb94b to your computer and use it in GitHub Desktop.
Save feifanzhou/7db49cd1a49881ebb94b to your computer and use it in GitHub Desktop.
Install Ruby on DO Ubuntu
apt-get install git
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_rc
echo 'eval "$(rbenv init -)"' >> ~/.bash_rc
exec bash
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
apt-get install libssl-dev
apt-get install zlibc zlib1g zlib1g-dev
apt-get install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment