Sunday, May 4, 2008

Installing ROR on linux

1) Install Ruby
yum update
yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql


2) Get Gem

cd /usr/local/src
wget http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz


3) Install Gem

tar -xvzf rubygems-0.9.2.tgz
cd rubygems-0.9.2
ruby setup.rb
cd ..


4) Install Rails

gem install rails --include-dependencies


5)
Install MySql
yum install mysql mysql-server

6)
Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start


No comments: