apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/ruby-2.1.5.tar.gz // select proper ruby version from http://ftp.ruby-lang.org/pub/ruby/
tar -xvzf ruby-2.1.5.tar.gz
cd ruby-2.1.5/
./configure --prefix=/usr/local
make
make install
Last active
November 5, 2015 10:21
-
-
Save fahimbabarpatel/328f0724e97a2b44cd01 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment