User Tools

Site Tools


Sidebar


guides:install:ruby_on_rails_on_centos_5.2

Installing Ruby on Rails on Centos 5.2

Install dependencies

sudo yum install -y httpd httpd-devel gcc gcc-c++ readline readline-devel zlib zlib-devel openssl openssl-devel gettext-devel expat-devel curl-devel

Download latest Ruby Source from:

http://www.ruby-lang.org/en/downloads/

Download latest RubyGems Source from:

http://rubyforge.org/frs/?group_id=126

Installing Ruby from Source

tar xzvf ruby-1.8.7-p72.tar.gz
cd ruby-1.8.7
./configure
make
sudo make install

Install openssl gem from source

cd ext/openssl/
ruby extconf.rb
make
sudo make install

Installing RubyGems

tar xzvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
sudo ruby setup.rb

Install Rails

sudo gem install rails

Install Mysql Gem

sudo gem install mysql

Install Passenger (mod_rails)

sudo gem install passenger
sudo passenger-install-apache2-module
guides/install/ruby_on_rails_on_centos_5.2.txt · Last modified: 2016/04/16 16:12 by michaelc