Page 1 of 1

update ruby to latest version 2.2.2

Posted: Thu Aug 06, 2015 12:55 pm
by nyoung
I am running ruby 1.8.7.374-4.el6_6 on my nagios xi server. I would like to update it to the latest version (2.2.2) but 'yum update ruby' says there are No Packages marked for Update.

The nagios version is Nagios XI 2014R2.7 on vmware (from the ova).

Is is possible to upgrade ruby? Is 2.2.2 supported by nagios? Is there any documentation on how to perform this upgrade?

Thanks.

Re: update ruby to latest version 2.2.2

Posted: Thu Aug 06, 2015 3:03 pm
by lmiltchev
I may be wrong, but I don't recall that we require ruby to be installed on the Nagios XI server... Do you need it because of a custom plugin that you are using?

Re: update ruby to latest version 2.2.2

Posted: Thu Aug 06, 2015 3:15 pm
by nyoung
Yes, it is for a custom plugin

Re: update ruby to latest version 2.2.2

Posted: Thu Aug 06, 2015 4:00 pm
by lmiltchev
If your plugin supports ruby ver. 2.2.2, you could upgrade the package. As a precaution, backup your XI instance, create snapshots, etc. It never hurts to play it safe. :)

Re: update ruby to latest version 2.2.2

Posted: Thu Aug 06, 2015 5:03 pm
by nyoung
# yum update ruby
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile

base: linux.cc.lehigh.edu
epel: reflector.westga.edu
extras: linux.cc.lehigh.edu
rpmforge: mirror.nexcess.net
updates: mirror.es.its.nyu.edu
No Packages marked for Update


Is there another supported method of upgrading ruby?

Re: update ruby to latest version 2.2.2

Posted: Thu Aug 06, 2015 7:51 pm
by Box293
You are going to have to build it from source.

This guide might help:
http://ask.xmodulo.com/upgrade-ruby-centos.html