Skip to content

Instantly share code, notes, and snippets.

@tacticiankerala
Created May 5, 2014 13:02
Show Gist options
  • Save tacticiankerala/6972ee062af03d4e5f4b to your computer and use it in GitHub Desktop.
Save tacticiankerala/6972ee062af03d4e5f4b to your computer and use it in GitHub Desktop.
Ruby 2.1.0 installation using ruby build
#!/bin/bash
sudo rm /var/lib/apt/lists/* -vf
set -e
sudo apt-get update
sudo apt-get install -y --force-yes autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev unzip
cd $HOME
wget -N http://s3-us-west-2.amazonaws.com/portrait-dependencies/ruby-build-master.zip
unzip -o ruby-build-master.zip
cd ruby-build-master/
sh install.sh
ruby-build 2.1.0 /usr/local/ruby-2.1.0
export PATH=$PATH:/usr/local/ruby-2.1.0/bin
gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment