CPAN failed to install XML::Parser module

M

Michael Yang

I am working on Debian GNU/Linux etch and have installed perl packages
5.8.8 with CPAN configured.

In the cpan shell, I was to install the module of XML::parser, but it
always failed with many error message returned. I don't know whether
if it is the issue of source on the mirror server, OR is the tool
issue on my box. The error msg is quite long that I can only paste
the tail part of it.

Could anybody help look at this?
It's really appreciated of your help

error:
Expat.c: In function 'XS_XML__Parser__Expat_UnsetAllHandlers':
Expat.c:2609: error: 'XML_Parser' undeclared (first use in this
function)
Expat.c:2609: error: expected ';' before 'parser'
Expat.xs:2144: error: 'parser' undeclared (first use in this function)
Expat.xs:2147: error: 'CallbackVector' has no member named 'ns'
Expat.xs:2148: error: 'CallbackVector' has no member named 'p'
Expat.xs:2149: error: 'XML_StartNamespaceDeclHandler' undeclared
(first use in this function)
Expat.xs:2149: error: expected ')' before numeric constant
Expat.xs:2154: error: 'XML_StartElementHandler' undeclared (first use
in this function)
Expat.xs:2154: error: expected ')' before numeric constant
Expat.xs:2158: error: 'XML_UnknownEncodingHandler' undeclared (first
use in this function)
Expat.xs:2158: error: expected ')' before numeric constant
Expat.c: In function 'XS_XML__Parser__Expat_ElementIndex':
Expat.c:2642: error: 'XML_Parser' undeclared (first use in this
function)
Expat.c:2642: error: expected ';' before 'parser'
Expat.xs:2167: error: 'parser' undeclared (first use in this function)
Expat.xs:2168: error: 'CallbackVector' has no member named
'st_serial_stack'
Expat.xs:2168: error: 'CallbackVector' has no member named
'st_serial_stackptr'
Expat.c: In function 'XS_XML__Parser__Expat_SkipUntil':
Expat.c:2664: error: 'XML_Parser' undeclared (first use in this
function)
Expat.c:2664: error: expected ';' before 'parser'
Expat.xs:2179: error: 'parser' undeclared (first use in this function)
Expat.xs:2180: error: 'CallbackVector' has no member named 'st_serial'
Expat.xs:2182: error: 'CallbackVector' has no member named
'skip_until'
Expat.c: In function 'XS_XML__Parser__Expat_Do_External_Parse':
Expat.c:2687: error: 'XML_Parser' undeclared (first use in this
function)
Expat.c:2687: error: expected ';' before 'parser'
Expat.xs:2194: error: 'parser' undeclared (first use in this function)
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/home/michael/.cpan/build/XML-Parser-2.34/
Expat'
make: *** [subdirs] Error 2
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make

cpan>
 
M

Michael Yang

Sorry, but that's backwards.

The tail of the build log is usually not very interesting - 99 times out of
100, a single missing header file will trigger hundreds of other errors
further down. What's far more useful is to scroll to the very top of the
build log, to see which missing header caused all this.



From the symbols, I'm guessing that expat.h wasn't found. Have you installed
the expat and expat-dev packages?

sherm--

Thanks so much Sherm, it works after I installed the libexpat-dev.
I really appreciated of it.
Michael.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top