Hi Steve,

I faced with the same problem trying to prepare a build environment for OpenNebula-2.2.1 on CentOS-5.6 x86_64:

Steven Timm wrote on 09/09/11 18:34:
But still get stuck on nokogiri (needs ruby > 1.8.7),
rake (needs rubygems 1.3.2)
xmlparser (depends on rake)
[root@FN]$ gem install nokogiri rake xmlparser

The execution of that command may fail with error like
ERROR:  Error installing nokogiri:
       nokogiri requires Ruby version >= 1.8.7
ERROR:  Error installing rake:
       rake requires RubyGems version >= 1.3.2
Building native extensions.  This could take a while...
ERROR:  Error installing xmlparser:
       ERROR: Failed to build gem native extension.

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
sh: rake: command not found

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
=====

I installed ruby-enterprise-1.8.7-3 ruby-enterprise-rubygems-1.3.2-2 from Southbridge repo (http://rpms.southbridge.ru/) $ yum --enablerepo="southbridge-stable" install ruby-enterprise-1.8.7-3 ruby-enterprise-rubygems-1.3.2-2

and could successfully install nokogiri and rake:

$ yum install libxml2-devel.x86_64 libxslt-devel.x86_64
$ gem install nokogiri rake

but xmlparser installation via command 'gem install xmlparser' fails (gem_make.out is attached).

Does someone know how to fix that?

Regards,
Nikolay.
/usr/local/bin/ruby -rubygems 
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/bin/rake 
RUBYARCHDIR=/usr/local/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib 
RUBYLIBDIR=/usr/local/lib/ruby/gems/1.8/gems/xmlparser-0.6.81/lib
rake/gempackagetask is deprecated.  Use rubygems/package_task instead
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
/usr/local/bin/ruby mkrf_conf.rb
rake
gcc  -fPIC -g -O2      -I/usr/local/lib/ruby/1.8/x86_64-linux 
-I/usr/local/lib/ruby/site_ruby/1.8 -I. -c xmlparser.c
xmlparser.c:50:24: error: xmlparse.h: No such file or directory
xmlparser.c:106: error: expected specifier-qualifier-list before 
‘XML_Parser’
xmlparser.c: In function ‘XMLParser_free’:
xmlparser.c:158: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:159: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:160: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c: In function ‘XMLParser_mark’:
xmlparser.c:169: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c:171: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c:171: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c:172: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c: In function ‘taintParser’:
xmlparser.c:178: error: ‘XMLParser’ has no member named ‘tainted’
xmlparser.c:179: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c:179: error: ‘XMLParser’ has no member named ‘context’
xmlparser.c:181: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c:181: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c: In function ‘taintObject’:
xmlparser.c:188: error: ‘XMLParser’ has no member named ‘tainted’
xmlparser.c: At top level:
xmlparser.c:205: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:233: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:247: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:262: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:278: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:294: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:319: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:342: error: expected ‘)’ before ‘xmlparser’
xmlparser.c:689: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:712: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:722: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:733: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:745: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:769: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:787: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c:802: error: expected ‘)’ before ‘xmlparser’
xmlparser.c:1272: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ 
token
xmlparser.c: In function ‘XMLParser_new’:
xmlparser.c:1414: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1416: error: ‘XMLParser’ has no member named ‘tainted’
xmlparser.c:1417: error: ‘XMLParser’ has no member named ‘context’
xmlparser.c:1420: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1420: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1424: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1425: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1426: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1427: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1428: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1429: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1430: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1453: error: ‘XMLParser’ has no member named ‘tainted’
xmlparser.c:1454: error: ‘XMLParser’ has no member named ‘tainted’
xmlparser.c:1455: error: ‘XMLParser’ has no member named ‘context’
xmlparser.c:1457: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1461: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1462: error: ‘XMLParser’ has no member named ‘iterator’
xmlparser.c:1463: error: ‘XMLParser’ has no member named 
‘defaultCurrent’
xmlparser.c:1467: error: ‘XMLParser’ has no member named ‘parent’
xmlparser.c: In function ‘XMLParser_parse’:
xmlparser.c:1516: error: ‘XML_StartElementHandler’ undeclared (first use in 
this function)
xmlparser.c:1516: error: (Each undeclared identifier is reported only once
xmlparser.c:1516: error: for each function it appears in.)
xmlparser.c:1516: error: expected ‘;’ before ‘start’
xmlparser.c:1517: error: ‘XML_EndElementHandler’ undeclared (first use in 
this function)
xmlparser.c:1517: error: expected ‘;’ before ‘end’
xmlparser.c:1557: error: ‘XMLParser’ has no member named ‘iterator’
xmlparser.c:1562: error: ‘XMLParser’ has no member named ‘iterator’
xmlparser.c:1563: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1564: error: ‘iterStartElementHandler’ undeclared (first use in 
this function)
xmlparser.c:1564: error: ‘iterEndElementHandler’ undeclared (first use in 
this function)
xmlparser.c:1565: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1566: error: ‘iterCharacterDataHandler’ undeclared (first use 
in this function)
xmlparser.c:1567: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1568: error: ‘iterProcessingInstructionHandler’ undeclared 
(first use in this function)
xmlparser.c:1576: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1576: error: ‘iterDefaultHandler’ undeclared (first use in this 
function)
xmlparser.c:1579: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1580: error: ‘iterUnparsedEntityDeclHandler’ undeclared (first 
use in this function)
xmlparser.c:1582: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1583: error: ‘iterNotationDeclHandler’ undeclared (first use in 
this function)
xmlparser.c:1585: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1586: error: ‘iterExternalEntityRefHandler’ undeclared (first 
use in this function)
xmlparser.c:1635: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1636: error: ‘myUnknownEncodingHandler’ undeclared (first use 
in this function)
xmlparser.c:1646: error: ‘start’ undeclared (first use in this function)
xmlparser.c:1646: error: ‘myStartElementHandler’ undeclared (first use in 
this function)
xmlparser.c:1648: error: ‘end’ undeclared (first use in this function)
xmlparser.c:1648: error: ‘myEndElementHandler’ undeclared (first use in 
this function)
xmlparser.c:1650: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1652: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1653: error: ‘myCharacterDataHandler’ undeclared (first use in 
this function)
xmlparser.c:1656: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1657: error: ‘myProcessingInstructionHandler’ undeclared (first 
use in this function)
xmlparser.c:1664: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1664: error: ‘myDefaultHandler’ undeclared (first use in this 
function)
xmlparser.c:1667: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1668: error: ‘myUnparsedEntityDeclHandler’ undeclared (first 
use in this function)
xmlparser.c:1670: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1671: error: ‘myNotationDeclHandler’ undeclared (first use in 
this function)
xmlparser.c:1673: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1674: error: ‘myExternalEntityRefHandler’ undeclared (first use 
in this function)
xmlparser.c:1721: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1743: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1747: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1750: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1751: warning: initialization makes pointer from integer without a 
cast
xmlparser.c:1762: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1766: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1768: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1769: warning: initialization makes pointer from integer without a 
cast
xmlparser.c: In function ‘XMLParser_done’:
xmlparser.c:1783: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1784: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1785: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c: In function ‘XMLParser_defaultCurrent’:
xmlparser.c:1797: error: ‘XMLParser’ has no member named ‘iterator’
xmlparser.c:1798: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c:1801: error: ‘XMLParser’ has no member named 
‘defaultCurrent’
xmlparser.c: In function ‘XMLParser_getCurrentLineNumber’:
xmlparser.c:1814: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c: In function ‘XMLParser_getCurrentColumnNumber’:
xmlparser.c:1827: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c: In function ‘XMLParser_getCurrentByteIndex’:
xmlparser.c:1840: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c: In function ‘XMLParser_setBase’:
xmlparser.c:1856: error: ‘XMLParser’ has no member named ‘parser’
xmlparser.c: In function ‘XMLParser_getBase’:
xmlparser.c:1866: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘*’ token
xmlparser.c:1866: error: ‘ret’ undeclared (first use in this function)
xmlparser.c:1869: error: ‘XMLParser’ has no member named ‘parser’
rake aborted!
Command failed with status (1): [gcc  -fPIC -g -O2      -I/usr/local/lib/ru...]

Tasks: TOP => default => xmlparser.so => xmlparser.o
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake...]

Tasks: TOP => default => xmlparser => ext/xmlparser/xmlparser.so
(See full trace by running task with --trace)
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to