Bug #1094

Gems Installation failed from source (xmlparser)

Added by Max Mikheev over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:01/27/2012
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Client API & Library
Target version:Release 3.4 - S0
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.2

Description

Hi,
I am trying to install OpenNebula from source on Ubuntu 11.10 server fresh installation.
The installations of xmlparser failed.

The messages during installation are below.
.../opennebula-3.2.0/share/install_gems$ sudo ./install_gems
No LSB modules are available.
Distribution "debian" detected.
About to install these dependencies:
  • gcc
  • libexpat1-dev

Press enter to continue...

apt-get install gcc libexpat1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.
libexpat1-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
About to install the gems for these components:
  • optional
  • sunstone
  • quota
  • cloud
  • ozones_server
  • acct
  • auth_ldap

Press enter to continue...

rake="/usr/bin/rake" gem install --no-ri --no-rdoc xmlparser
Building native extensions. This could take a while...
ERROR: Error installing xmlparser:
ERROR: Failed to build gem native extension.

/usr/bin/rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib
rm -rf test/coverage
/usr/bin/ruby1.8 mkrf_conf.rb
(in /usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81)
rake
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
(in /usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/ext/xmlparser)
xmlparser.c: In function ‘XMLParser_getIdAttrribute’:
xmlparser.c:2022:16: error: ‘XMLParser’ has no member named ‘lastAttrs’
rake aborted!
Command failed with status (1): [gcc -fPIC -fno-strict-aliasing -g -g -O2 ...]
/usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/ext/xmlparser/Rakefile:29
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake...]

(See full trace by running task with --trace)

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/gem_make.out
Error executing rake="/usr/bin/rake" gem install --no-ri --no-rdoc xmlparser

Associated revisions

Revision 6e718906
Added by Javi Fontan over 9 years ago

bug #1094: take out uneeded xmlparser requirement

Revision 3e64bbbc
Added by Javi Fontan about 9 years ago

bug #1094: take out uneeded xmlparser requirement
(cherry picked from commit 6e718906bdf99947d49848b36bc4ed04a018a000)

History

#1 Updated by Ruben S. Montero over 9 years ago

  • Target version set to Release 3.4 - S0

#2 Updated by Javi Fontan over 9 years ago

  • Category set to Client API & Library
  • Status changed from New to Closed
  • Assignee set to Javi Fontan
  • Resolution set to fixed

xmlparser is an optional requirement used to make xmlrpc calls faster but can work without it. We have changed ruby OCA libraries so this library is no longer needed and nokogiri is used instead. This change is made in master branch and will be included in 3.4.

xmlparser was giving lots of problems with ruby 1.9.x and new versions of libexpat.

Also available in: Atom PDF