How to install rails on CentOS 5.4 x64

Rob Pak ·

1. Download ruby source

wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz
tar -zxvf ruby-1.8.7.tar.gz

2. Install dependencies

sudo yum install gcc
sudo yum install gcc-c++
sudo yum install zlib-devel
sudo yum install openssl-devel
sudo yum install readline-devel
sudo yum install sqlite3-devel

3. Build ruby from source

cd ruby-1.8.7
./configure --with-openssl-dir=/usr/lib64/openssl
make
sudo make install

4. Download rubygems source

wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
tar -zxvf rubygems-1.3.6.tgz
cd rubygems-1.3.6
sudo ruby setup.rb

5. Install gems

sudo gem install rake
sudo gem install rails
sudo gem install sqlite3-ruby (optional)

Rob Pak
Rob Pak

Rob codes for a living at Carbon Five, in beautiful Santa Monica, CA.

What can we help you with?

Tell us a bit about your project, or just shoot us an email.

Interested in a Career at Carbon Five? Check out our job openings.