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
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.
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).
thanks. very helpful. worked like a charm.
Does anyone have a 64-bit build? Or alternatively, does anyone have the SPEC file that was used to build the above RPMs?
Damon
It worked here, just following the instructions and giving
yum –enablerepo=ruby install ruby
Thanks.
Thanks! worked in the very first shot.
@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