Created
January 14, 2013 15:36
-
-
Save sonots/4530833 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
# rvm-install.sh の中で curl: (60) SSL certificate problem, エラーが出るので crt ファイルを置き換える | |
sudo cp /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.crt.bak | |
sudo curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt | |
# Install rvm | |
sudo yum -y install readline readline-devel | |
wget https://raw.github.com/wayneeseguin/rvm/stable/binscripts/rvm-installer -O /tmp/rvm-install.sh | |
sudo zsh /tmp/rvm-install.sh | |
rvm get 1.10.0 | |
rvm reload | |
# Install ruby using rvm | |
sudo yum -y install git gcc gcc-c++ automake autoconf make | |
sudo yum -y install zlib zlib-devel readline readline-devel openssl openssl-devel | |
rvm install 1.9.3 | |
rvm use 1.9.3 | |
rvm use 1.9.3 --default | |
# Install gem | |
wget http://rubyforge.org/frs/download.php/74849/rubygems-1.8.2.tgz -O /tmp/rubygems-1.8.2.tgz | |
cd /tmp | |
tar zxvf rubygems-1.8.2.tgz | |
cd rubygems-1.8.2 | |
ruby setup.rb --no-format-executable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment