Last active
December 16, 2015 23:59
-
-
Save yuyalush/5517602 to your computer and use it in GitHub Desktop.
1. apt-get update
apt-get upgrade
apt-get install curl 2. curl -L http://bit.ly/setup_rb20 | bash
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
apt-get -y install build-essential git libssl-dev zlib1g-dev libreadline-dev zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev | |
echo 'install: --no-ri --no-rdoc' >> ~/.gemrc | |
echo 'update: --no-ri --no-rdoc' >> ~/.gemrc | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
exec /bin/bash -l | |
git clone https://github.com/sstephenson/ruby-build.git | |
cd ruby-build/ | |
./install.sh | |
gem install bundler | |
cd | |
rbenv install 2.0.0-p0 | |
rbenv global 2.0.0-p0 | |
rbenv rehash | |
ruby -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment