Last active
December 19, 2015 03:29
-
-
Save masa-ita/5890642 to your computer and use it in GitHub Desktop.
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 | |
# install packages needed to compile ruby | |
yum -y install make gcc zlib-devel openssl-devel \ | |
readline-devel gdbm-devel bison \ | |
libffi-devel wget | |
# you should register EPEL repository to install libyaml | |
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm | |
yum -y install libyaml-devel | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | |
tar xvzf ruby-2.0.0-p247.tar.gz | |
cd ruby-2.0.0-p247 | |
./configure --prefix=/usr/local | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment