LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ruby upgrade 1.8.7 on CentOS 5.10 (https://www.linuxquestions.org/questions/linux-newbie-8/ruby-upgrade-1-8-7-on-centos-5-10-a-4175532802/)

loadedmind 02-02-2015 08:28 AM

Ruby upgrade 1.8.7 on CentOS 5.10
 
We're unable to upgrade our environment beyond CentOS 5.10. This is a webserver that has certain reliances to the specific version of the OS, long story short.

I was asked to install a plugin for Redmine that requires at least ruby 1.8.7 so I cloned our VM as a new machine to test functional checkout. The problem is, the existing installation of Ruby was also installed ad hoc (not from any repo or yum methods) and it's currently at 1.8.5. The 1.8.7 version I tried to install gives me the following:
Quote:

# rpm -Uvf ruby-1.8.7.374-2.el6.x86_64.rpm warning: ruby-1.8.7.374-2.el6.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID c105b9de error: Failed dependencies: rpmlib(FileDigests) <= 4.6.0-1 is needed by ruby-1.8.7.374-2.el6.x86_64 ruby-libs = 1.8.7.374-2.el6 is needed by ruby-1.8.7.374-2.el6.x86_64 rpmlib(PayloadIsXz) <= 5.2-1 is needed by ruby-1.8.7.374-2.el6.x86_64 ruby = 1.8.5-31.el5_9 is needed by (installed) ruby-irb-1.8.5-31.el5_9.x86_64 ruby = 1.8.5-31.el5_9 is needed by (installed) ruby-rdoc-1.8.5-31.el5_9.x86_64 ruby = 1.8.5-31.el5_9 is needed by (installed) ruby-ri-1.8.5-31.el5_9.x86_64
It appears as though this particular version was intended for CentOS 6 and, as I've known from previous experience, dependency hell is upon me. So, the question becomes, has anyone successfully upgraded ruby without tinkering with the OS version upgrade and, if so, might you have a HOWTO that prevents dependency hell? This, short of installing from source, is headed in the wrong direction real quick so I'm trying to stick with the RPM method. But, obviously, I'll listen to anything at this point.

a4z 02-02-2015 09:17 AM

you can not simply update 1 rpm with the ruby version,
if you use rpm you have to update/install also all dependencies

similar to pythons virtual env you can install different ruby versions,
read through
https://rvm.io/
and or
https://github.com/sstephenson/rbenv
and decide which fits best for you.

loadedmind 02-03-2015 09:02 AM

Thanks a4z.


All times are GMT -5. The time now is 06:46 AM.