WoodenBits

how to install Ruby on Rails on fresh CentOS 5.0

Well, here it is: I have to install Ruby on Rails app on fresh slice from slicehost.com, and this time I will use CentOS. And I know nothing about CentOS, and last time I used RedHat was around 8 years ago…

First – a reference – I found almost all information that I needed here: http://bryan.squall.us/posts/65

Here is my slightly modified script:

ssh -l root SERVER.IP.OR.NAME
yum update
yum install man wget
yum groupinstall "Development Tools" 
yum install postgresql-devel
yum install ruby ruby-devel rdoc
yum install ruby-devel
wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
tar xfvz rubygems-0.9.4.tgz
cd rubygems-0.9.4
ruby setup.rb
gem update --system
gem install rails --version 1.2.6
gem install mongrel
gem install ruby-postgres
adduser www
passwd www

Post a comment


(lesstile enabled - surround code blocks with ---)