Skip to content

Instantly share code, notes, and snippets.

@yuyalush
Last active December 16, 2015 23:59
Show Gist options
  • Save yuyalush/5517602 to your computer and use it in GitHub Desktop.
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
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