Home > Uncategorized > Installing Ruby 1.8.6 on CentOS-5

Installing Ruby 1.8.6 on CentOS-5

I don’t know how much difference it makes but since I use Ruby 1.8.6 under Ubuntu for development, I prefer to use the same version in production on Centos. Unfortunately, CentOS-5.1 still comes with version 1.8.5.

Fortunately, someone has kindly gone to the trouble of building CentOS-5.1 rpms.

From centos.org:

Jacek (wolk at jablko.one.pl) rebuilt a few ruby-1.8..6 rpms from fedora under Centos 5.1. His yum repo is avilable at: https://repo.premiumhelp.eu/ruby/

To use with yum, create /etc/yum.repos.d/ruby.repo and add the following:

[ruby]
name=ruby
baseurl=https://repo.premiumhelp.eu/ruby/
gpgcheck=0
enabled=0

————————————————————————–
Sample usage:
#yum –enablerepo=ruby list *RUBY*
Thanks to Jacek

Categories: Uncategorized Tags:
  1. March 19th, 2008 at 11:33 | #1

    Hi,

    The right way to fix this would be to request a bump for ruby and have it pushed into centosplus – that way, its available to people who install CentOS without needing to go down the route of adding other repo’s etc.

    The good thing about being a part of a community is that you can feed back stuff like this into the community.

  2. peterk
    March 19th, 2008 at 12:55 | #2

    Hi Karanbir,

    Thanks for the feedback, but if you look closely, you’ll see that I got most of this _from_ centos.org.
    I wonder why the original poster didn’t request a bump for Ruby, particularly since his fix is for CentOS 5.1 and Ruby 1.8.6 has been around since before the release of CentOS-5.0 (okay, so only by a few days).

  3. May 19th, 2009 at 17:26 | #3

    thanks. very helpful. worked like a charm.

  4. Damon Miller
    August 25th, 2009 at 12:31 | #4

    Does anyone have a 64-bit build? Or alternatively, does anyone have the SPEC file that was used to build the above RPMs?

    Damon

  5. Henrique
    December 21st, 2009 at 14:38 | #5

    It worked here, just following the instructions and giving

    yum –enablerepo=ruby install ruby

    Thanks.

  6. March 31st, 2010 at 16:48 | #6

    Thanks! worked in the very first shot.

  7. May 2nd, 2010 at 22:31 | #7

    @Damon Miller
    I found that this repo has the 64-bit build: https://centos.karan.org/el5/misc/testing/x86_64/RPMS/

    Here’s the repo file with the appropriate edits:

    [ruby]
    name=ruby
    baseurl=https://centos.karan.org/el5/misc/testing/x86_64/RPMS/
    gpgcheck=0
    enabled=0

  1. July 15th, 2010 at 07:54 | #1