Last active
January 2, 2016 01:19
-
-
Save mrkplt/8229498 to your computer and use it in GitHub Desktop.
Pulls ruby 1.8.7 out of the amazon instance. Installs 2.0.
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 | |
# I don't know if this will actually run as a script, but I threw the shebang in anyway | |
# executing the individual step works fine. | |
############################################### | |
# To use: | |
# wget -O install-ruby-2.sh https://gist.github.com/mrkplt/8229498/raw | |
# chmod 755 install-ruby-2.sh | |
# sudo ./install-ruby-2.sh | |
############################################### | |
sudo yum -y update | |
sudo ln -sf /usr/share/zoneinfo/America/New_York \/etc/localtime | |
sudo yum -y install gcc gcc-c++ make | |
sudo su - | |
yum -y remove ruby | |
yum -y groupinstall 'Development Tools' | |
yum -y groupinstall development-libs | |
yum -y install libffi-devel | |
yum -y install libyaml-devel | |
yum -y update | |
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz | |
tar xzvf ruby-2.1.1.tar.gz | |
cd ruby-2.1.1 | |
./configure | |
make | |
make install | |
make clean | |
cd .. | |
rm -rf ruby-2.1.1* | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment