Ruby on Rails and rubygems install on CentOS

Ruby on Rails install on CentOS

Once you have the development tools package installed. You can go ahead and install Ruby on Rails. The main ruby packages and dependencies will be installed using the ‘yum’ package manager, but rubygems will be installed from source. Rubygems is not readily available through the repositories in yum.

Install ruby.

Main Ruby on Rails packages can be installed using the below method.

sudo yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri

Once done, we can have a look at the Ruby version.

$ ruby -v
ruby 1.8.8dev (2010-02-11) [i686-linux]

Installing rubygems for Rails installation.

Download from: http://rubyforge.org/projects/rubygems/

wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz

Now unpack it and move into the newly created folder.

Now we can go through the simple process of compiling it:

sudo ruby setup.rb

Once done, we can check the gem version with a:

$ gem -v
1.3.7

NOTE:

http://rubygems.org is now the default source for downloading gems.

* `gem` commands
* `gem install` and `gem fetch` now report alternate platforms when a matching one couldn’t be found.

One Response to “Ruby on Rails and rubygems install on CentOS”

  1. 1naturallyon 12 Jan 2022 at 9:28 pm

    3instances…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.