<div dir="ltr">You are right. Installing SCL ruby will break the dependencies.<div><br></div><div>We have been discussing this and we can not provide an easy way to use the new hybrid drivers. These drivers will only be supported on distributions with ruby 1.9.3 or newer. By default the install_gems will not add Azure and Softlayer when ruby is < 1.9.3 so the software can be used but without those features.</div>
<div><br></div><div>This does not mean that you can do some juggling in CentOS 6. One way to do this without resorting to RVM as is really cumbersome to configure as systemwide is to compile ruby manually. I still have to do this myself and maybe create a guide but more or less these are the steps to do it.</div>
<div><br></div><div>* Install OpenNebula, this install ruby dependencies. But do not execute install_gems.</div><div>* Rename binaries of ruby and its tools/gems so they do not clash with the newer ones. For example, rename /usr/bin/ruby to /usr/bin/ruby-1.8. The list of binaries can be found using the rpm tool:</div>
<div># rpm -qa | grep ruby | xargs rpm -ql | grep /usr/bin/<br></div><div>* Compile from source ruby 2.1.2, this is the latest stable version</div><div><a href="https://www.ruby-lang.org/en/installation/#building-from-source">https://www.ruby-lang.org/en/installation/#building-from-source</a><br>
</div><div>* Execute install_gems</div><div><br></div><div>Hopefully this will upgrade the ruby installation and make the new hybrid drivers work.</div><div><br></div><div>Cheers</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 12:55 PM, Jose Angel Diaz <span dir="ltr"><<a href="mailto:joseangel.diaz@cenatic.es" target="_blank">joseangel.diaz@cenatic.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I have tried in a fresh install the use of the SCL, but don't work.<div><br></div><div>The package opennebula-ruby have some dependencies on opennebula-server and install the ruby package not the ruby193 package.</div>
<div><br></div><div>So the opennebula-ruby are always installing the ruby 1.8.7, the default ruby package on CentOS6</div><div><br></div><div></div><img src="https://mailtrack.io/trace/mail/900cad76b99f682e6e35d8ecb3ceedbc251cd30d.png" height="1" width="1"></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-22 18:13 GMT+02:00 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span>:<div><div class="h5">
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">We are going to modify install_gems so it does not try to install azure gem in older versions of Ruby. Meanwhile you can execute it skipping the cloud gems:<div><br></div><div># ./install_gems quota sustone auth_ldap oneflow oca</div>
<div><br></div><div>RVM is a great tool but a bit cumbersome to use for daemon startup. Most of times the daemons don't run in a login shell so they don't load bash startup scripts that prepare the RVM environment and leads to mixed up environments (old ruby executable with newer binary gems).</div>
<div><br></div><div>You may want to try SCL in CentOS</div><div><br></div><div><a href="http://wiki.centos.org/AdditionalResources/Repositories/SCL" target="_blank">http://wiki.centos.org/AdditionalResources/Repositories/SCL</a><br>
</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Tue, Jul 22, 2014 at 12:16 PM, Jose Angel Diaz <span dir="ltr"><<a href="mailto:joseangel.diaz@cenatic.es" target="_blank">joseangel.diaz@cenatic.es</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello<div><br></div><div> I'm trying the new opennebula 4.7.80 dev version and i've found a problem with the ruby packages on Centos 6.</div>
<div><br></div><div> The package version at Centos repos for ruby is : ruby-1.8.7.352-13.el6.x86_64</div>
<div><br></div><div>When we run the install_gems scripts this script try to install the sqlite3 adn azure but the minimal ruby version required is: Ruby version >= 1.9.2</div><div><div><br></div>I've solved this problem with RVM package and manual install of the last ruby version:</div>
<div><br></div><div><br></div><div><div>ruby --version</div><div>ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]</div></div><div><br></div><div>curl -L <a href="http://get.rvm.io" target="_blank">get.rvm.io</a> | bash -s stable<br>
</div><div>source /etc/profile.d/rvm.sh<br></div><div>rvm install 1.9.3<br></div><div><br></div><div><div>ruby --version</div><div>ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-linux]</div></div><img height="1" width="1"></div>
<br></div></div>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---------------<br>Correo Corporativo Fundación Cenatic<br><br>Este email ha sido enviado desde una plataforma perteneciente a la Fundación Cenatic <br>
<br>Cualquier duda o modificacion contactar con Fundación Cenatic<br><a href="tel:%2B34%20924%2067%2073%2016" value="+34924677316" target="_blank">+34 924 67 73 16</a><br><a href="mailto:info@cenatic.es" target="_blank">info@cenatic.es</a><br>
<br>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.opennebula.org" target="_blank">Dev@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Javier Fontán Muiños<br>Developer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a>
</font></span></div>
</blockquote></div></div></div><br></div><div class="HOEnZb"><div class="h5">
<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---------------<br>Correo Corporativo Fundación Cenatic<br><br>Este email ha sido enviado desde una plataforma perteneciente a la Fundación Cenatic <br>
<br>Cualquier duda o modificacion contactar con Fundación Cenatic<br><a href="tel:%2B34%20924%2067%2073%2016" value="+34924677316" target="_blank">+34 924 67 73 16</a><br><a href="mailto:info@cenatic.es" target="_blank">info@cenatic.es</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Javier Fontán Muiños<br>Developer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a>
</div>