Bugs item #22877, was opened at 2008-11-18 13:54
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nikolay Kolev (nikolay)
Assigned to: Nobody (None)
Summary: Gem 0.9 cannot be installed on Ubuntu 8.04

Initial Comment:
ruby_xml_error.c: In function âruby_init_xml_errorâ:
ruby_xml_error.c:207: error: âXML_FROM_SCHEMATRONVâ undeclared (first use in 
this function)
ruby_xml_error.c:207: error: (Each undeclared identifier is reported only once
ruby_xml_error.c:207: error: for each function it appears in.)
ruby_xml_error.c:514: error: âXML_TREE_NOT_UTF8â undeclared (first use in this 
function)
ruby_xml_error.c:890: error: âXML_SCHEMATRONV_ASSERTâ undeclared (first use in 
this function)
ruby_xml_error.c:891: error: âXML_SCHEMATRONV_REPORTâ undeclared (first use in 
this function)
make: *** [ruby_xml_error.o] Error 1


----------------------------------------------------------------------

>Comment By: Charlie Savage (cfis)
Date: 2008-11-18 14:20

Message:
Actually, that won't work will it.  Hmm, looks like there will have to be a 
libxml version check.

----------------------------------------------------------------------

Comment By: Charlie Savage (cfis)
Date: 2008-11-18 14:17

Message:
Kevin, Nikolay,

Looks like Ubuntu has an older version of libxml.

That constant was added here:

http://mail.gnome.org/archives/svn-commits-list/2008-March/msg05252.html

Can either of you check a fix for me?

Update ruby_xml_error.c, line 208, like this:

#ifdef XML_FROM_SCHEMATRONV /* Only present in newer versions of libxml */
  rb_define_const(eXMLError, "SCHEMATRONV", INT2NUM(XML_FROM_SCHEMATRONV));
#endif

Then you should just be able to run make as root.  I only have Fedora boxes 
lying around at the moment.....

----------------------------------------------------------------------

Comment By: Kevin Menard (nirvdrum)
Date: 2008-11-18 14:02

Message:
I can confirm.  I was just about to raise the issue myself.  Major deal breaker 
for us.

I'm trying to find a way to resolve it with the package manager, but nothing 
obvious is jumping out.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to