Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > CPAN failed to install XML::Parser module

Reply
Thread Tools

CPAN failed to install XML::Parser module

 
 
Michael Yang
Guest
Posts: n/a
 
      09-10-2007
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:arser, 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>

 
Reply With Quote
 
 
 
 
Michael Yang
Guest
Posts: n/a
 
      09-10-2007
On Sep 10, 5:53 pm, Sherm Pendley <spamt...@dot-app.org> wrote:
> Michael Yang <Michael....@gmail.com> 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:arser, 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rt.cpan.org, search.cpan.org: why so unuseable? Ben Bullock Perl Misc 12 07-08-2008 12:51 PM
Install Mail::RBL failed in CPAN, how to fix it? mike Perl Misc 1 05-01-2007 11:54 PM
Is there a better way to search CPAN than search.cpan.org? usenet@DavidFilmer.com Perl Misc 5 10-12-2005 04:50 AM
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails carl d. Perl Misc 1 05-10-2005 09:35 PM
install Bundle::CPAN in Cygwin failed sea Perl Misc 1 10-17-2004 11:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57