CPAN failed to install XML::Parser module

CPAN failed to install XML::Parser module

am 10.09.2007 10:36:06 von 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>

Re: CPAN failed to install XML::Parser module

am 10.09.2007 11:53:34 von Sherm Pendley

Michael Yang writes:

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

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.

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

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

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Re: CPAN failed to install XML::Parser module

am 10.09.2007 12:29:11 von Michael Yang

On Sep 10, 5:53 pm, Sherm Pendley wrote:
> Michael Yang writes:
> > 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.
>
> 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.
>
> > 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)
>
> From the symbols, I'm guessing that expat.h wasn't found. Have you installed
> the expat and expat-dev packages?
>
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net

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