Skip to content

Instantly share code, notes, and snippets.

@nathanclark
Created February 23, 2010 21:05
Show Gist options
  • Save nathanclark/312707 to your computer and use it in GitHub Desktop.
Save nathanclark/312707 to your computer and use it in GitHub Desktop.
#!/bin/bash
yum install httpd-devel openssl-devel zlib-devel gcc gcc-c++ curl-devel expat-devel gettext-devel mysql-server mysql-devel curl make
mkdir /usr/local/src
cd /usr/local/src
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.gz
tar xzvf ruby-1.8.7-p249.tar.gz
cd ruby-1.8.7-p249
./configure --enable-shared --enable-pthread
make
make install
cd ext/zlib
ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib
cd ../../
make
make install
cd /usr/local/src
wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
tar xzvf rubygems-1.3.6.tgz
cd rubygems-1.3.6
ruby setup.rb
gem sources -d http://rubyworks.rubyforge.org/redhat/5/GEMS/i386/
gem sources -a http://gemcutter.org
gem install rubygems-update
update_rubygems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment