This gave me the following error, so I don't think it is the best way to go.<div>Could it be that there is an error in OpenNebula's install_gems script (perhaps a version mismatch)?<div><br></div><div><div>ERROR: gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.</div>
<div>If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian.</div><br><div class="gmail_quote">
On Thu, Jan 19, 2012 at 2:11 PM, Nasser Mooman <span dir="ltr"><<a href="mailto:nmooman@yahoo.com">nmooman@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
update your gem and rubygems.<br>
gem update --system 1.3.7<br>
gem install rubygems-update<br>
<br>
<br>
I hope this helps.<br>
<br>
--Mooman<div><div class="h5"><br>
On 19/01/2012 7:31 AM, Florian Antonescu wrote:
</div></div><blockquote type="cite"><div><div class="h5">I get an error (see below) when trying to
run opennebula-3.2.0/share/install_gems/install_gems Can someone
give me a hint on how to proceed?
<div><br>
</div>
<div>Best regards,</div>
<div>Florian Antonescu</div>
<div><br>
</div>
<div>
<div>No LSB modules are available.</div>
<div>Distribution "debian" detected.</div>
<div>About to install these dependencies:</div>
<div>* gcc</div>
<div>* libexpat1-dev</div>
<div><br>
</div>
<div>Press enter to continue...</div>
<div><br>
</div>
<div>apt-get install gcc libexpat1-dev</div>
<div>Reading package lists... Done</div>
<div>Building dependency tree</div>
<div>Reading state information... Done</div>
<div>gcc is already the newest version.</div>
<div>libexpat1-dev is already the newest version.</div>
<div>0 upgraded, 0 newly installed, 0 to remove and 303 not
upgraded.</div>
<div>About to install the gems for these components:</div>
<div>* optional</div>
<div>* sunstone</div>
<div>* quota</div>
<div>* cloud</div>
<div>* ozones_server</div>
<div>* acct</div>
<div>* auth_ldap</div>
<div><br>
</div>
<div>Press enter to continue...</div>
<div><br>
</div>
<div>rake="/usr/bin/rake" gem install --no-ri --no-rdoc
xmlparser</div>
<div>Building native extensions. This could take a while...</div>
<div>ERROR: Error installing xmlparser:</div>
<div> ERROR: Failed to build gem native extension.</div>
<div><br>
</div>
<div> /usr/bin/rake
RUBYARCHDIR=/var/lib/gems/1.8/gems/xmlparser-0.6.81/lib
RUBYLIBDIR=/var/lib/gems/1.8/gems/xmlparser-0.6.81/lib</div>
<div>rm -rf test/coverage</div>
<div>NOTE: Gem::Specification#has_rdoc= is deprecated with no
replacement. It will be removed on or after 2011-10-01.</div>
<div>Gem::Specification#has_rdoc= called from
/var/lib/gems/1.8/gems/mkrf-0.2.3/lib/mkrf/rakehelper.rb:81</div>
<div>.</div>
<div>NOTE: Gem::Specification#has_rdoc= is deprecated with no
replacement. It will be removed on or after 2011-10-01.</div>
<div>Gem::Specification#has_rdoc= called from
/var/lib/gems/1.8/gems/xmlparser-0.6.81/Rakefile:30</div>
<div>.</div>
<div>/usr/bin/ruby1.8 mkrf_conf.rb</div>
<div>(in /var/lib/gems/1.8/gems/xmlparser-0.6.81)</div>
<div>rake</div>
<div>gcc -fPIC -fno-strict-aliasing -g -g -O2 -fPIC
-DHAVE_EXPAT_H -I/usr/include
-I/usr/lib/ruby/1.8/x86_64-linux
-I/usr/local/lib/site_ruby/1.8 -I. -c xmlparser.c</div>
<div>(in /var/lib/gems/1.8/gems/xmlparser-0.6.81/ext/xmlparser)</div>
<div>xmlparser.c: In function âXMLParser_getIdAttrributeâ:</div>
<div>xmlparser.c:2022:16: error: âXMLParserâ has no member named
âlastAttrsâ</div>
<div>
rake aborted!</div>
<div>Command failed with status (1): [gcc -fPIC
-fno-strict-aliasing -g -g -O2 ...]</div>
<div>/var/lib/gems/1.8/gems/xmlparser-0.6.81/ext/xmlparser/Rakefile:29</div>
<div>(See full trace by running task with --trace)</div>
<div>rake aborted!</div>
<div>Command failed with status (1): [rake...]</div>
<div><br>
</div>
<div>(See full trace by running task with --trace)</div>
<div><br>
</div>
<div><br>
</div>
<div>Gem files will remain installed in
/var/lib/gems/1.8/gems/xmlparser-0.6.81 for inspection.</div>
<div>Results logged to
/var/lib/gems/1.8/gems/xmlparser-0.6.81/./gem_make.out</div>
<div>Error executing rake="/usr/bin/rake" gem install --no-ri
--no-rdoc xmlparser</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div></div>