Ruby upgrade from 1.8.5 to 1.8.7 and all programs understand to use the newer version

Here is a Ruby related question.

Express installation of OpenNebula 2.2.0 on CentOS caused me big problems, as it installs Ruby 1.8.5, which is not compatible with Sunstone. I installed Ruby 1.9.2 after completing the Express installation, but the problem remained as Sunstone tried to use the old Ruby installation.

I don’t know how to set it up, so use a newer version of Ruby instead.

After this problem, I reinstalled CentOS and installad Ruby 1.8.7. When I do ruby ​​-v, it shows: ruby ​​1.8.7 (2010-12-23 patchlevel 330).

But when I do "gem update -system", it says: (Gem :: InstallError) Rubygems-update requries Ruby Version> = 1.8.7. Earlier, an older version was installed from the CentOS repository (for installing yum), and it seems that installing GEM does not understand that I installed a newer version.

So my question is: How do I configure my system so that all programs understand the use of Ruby 1.8.7?

Thank!

Anders Branderud

+3
source share
1 answer

I suggest using Ruby Version Manager

bash < <(curl -s https://rvm.ioinstall/rvm)

and then, or even better, before :) read some documentation about rvm.

+3
source

All Articles