Created
June 6, 2015 01:39
-
-
Save feifanzhou/7db49cd1a49881ebb94b to your computer and use it in GitHub Desktop.
Install Ruby on DO 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
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