This should apply to RHEL5 as well, but I haven’t verified yet.

The easiest solution I’ve found is to simply install Ruby and it’s dependencies and then install RubyGems from source.

I’ve written a small script which installs Ruby and it’s dependencies.  It then grabs the RubyGems source tarball and installs Gems from source.  As I wrote this to get a working Chef install, it also adds an opscode gems source.

You can get the script here.

Tags: , ,

3 Responses to “Installing RubyGems on Centos 5”

  1. Ewoud Kohl van Wijngaarden says:

    I prefer to use the EPEL repository (https://fedoraproject.org/wiki/EPEL). It contains a lot of useful software, including RubyGems.

  2. John Alberts says:

    I usually prefer an existing repository as well. Unfortunately, I’m not allowed to add any non-official Red Hat repositories to the production servers at work. The method I presented uses the official Ruby packages from Red Hat and just downloads the Ruby Gem sources.

  3. Razmal says:

    Nice, works like a charm.. thx

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>