Home > Centos 5.2, Ruby on Rails > How To Install Ruby on Rails on Centos 5.2

How To Install Ruby on Rails on Centos 5.2

December 3rd, 2008 Leave a comment Go to comments

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

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

Related posts:

  1. How to Install Tracks 1.7 on Centos 5.2   Install Ruby on Rails – Use http://www.how-to-linux.com/2008/12/how-to-install-ruby-on-rails-on-centos-52/ Create a...
  2. How To Install Elgg 1.5 on Centos 5.2 You will need to update the repositories so you can...

Categories: Centos 5.2, Ruby on Rails Tags:
  1. abednegoyulo
    February 5th, 2009 at 20:25 | #1

    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.

  2. admin
    February 10th, 2009 at 20:45 | #2

    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.

  1. January 18th, 2009 at 03:49 | #1
  2. April 5th, 2009 at 01:30 | #2
  3. April 5th, 2009 at 02:24 | #3
  4. May 30th, 2009 at 17:05 | #4
You must be logged in to post a comment.