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