Skip to content

Instantly share code, notes, and snippets.

@sonots
Created January 14, 2013 15:36
Show Gist options
  • Save sonots/4530833 to your computer and use it in GitHub Desktop.
Save sonots/4530833 to your computer and use it in GitHub Desktop.
#!/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