How To Install Ruby on Rails on Centos 5.2

Add rubyworks repo in /etc/yum.repos.d/. 

vi /etc/yum.repos.d/rubyworks.repo

And insert this text;

 # Link file for RubyWorks yum repository
# Place this file in /etc/yum.repos.d

[rubyworks]
name=RubyWorks
baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch
enabled=1
gpgcheck=1
gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key
priority=1

Install Ruby on Rails 2.2.2 on Centos 5.2

yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql

Download and install ruby gems

wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz

tar xvf rubygems-1.3.1.tgz

cd rubygems-1.3.1

ruby setup.rb

Install Rails

gem install rails

No related posts.

This entry was posted in Centos 5.2, Ruby on Rails and tagged . Bookmark the permalink.

6 Responses to How To Install Ruby on Rails on Centos 5.2

  1. Pingback: Install Clocking IT on Centos 5.2 | How To Linux

  2. abednegoyulo says:

    How did you install the ruby-mysql package? I mean, where did you get it? I tried searching for the package in all of the official repos and in rpmforge but I can’t seem to find it.

  3. admin says:

    This looks like a good article to build it from source – http://dailyvim.blogspot.com/2008/08/installing-ruby-dbi-mysql-on-centos-52.html, get back to me if it works. When I have some more time I’ll review my instructions and find out how I did it, its not in my notes.

  4. Pingback: Install Clocking IT on Centos 5.2 | How To Linux

  5. Pingback: How to Install Tracks 1.7 on Centos 5.2 | How To Linux

  6. Pingback: links for 2009-05-30 | Chris Dalby Untangles Networks

Leave a Reply