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: , ,

  • Ewoud Kohl van Wijngaarden

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

  • http://blog.mindlesstechie.net John Alberts

    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.

  • http://razmal.blogsome.com Razmal

    Nice, works like a charm.. thx

  • http://www.venturehq.net Alexander Fairley

    The folks at
    endpoint.com provide packages not just of gems, but of a full REE/Passenger stack.
    https://packages.endpoint.com/rhel/5/ruby-enterprise-opt/SRPMS/
    It still requires some TLC to get up and running as you want it, but it’s a good starting point.

  • http://mclear.co.uk John McLear

    Connecting to helpdesk.hosted.exlibrisgroup.com|199.117.46.144|:443… connected.
    HTTP request sent, awaiting response… 403 Forbidden

    • http://blog.mindlesstechie.net John Alberts

      You forgot to change RUBY_SOURCE_URL in the script. There is a comment in the script that mentions you need to change it.