Created
May 5, 2014 13:02
-
-
Save tacticiankerala/6972ee062af03d4e5f4b to your computer and use it in GitHub Desktop.
Ruby 2.1.0 installation using ruby build
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
#!/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