CPAN failed to install XML::Parser module

Discussion in 'Perl Misc' started by Michael Yang, Sep 10, 2007.

  1. Michael Yang

    Michael Yang Guest

    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>
     
    Michael Yang, Sep 10, 2007
    #1
    1. Advertising

  2. Michael Yang

    Michael Yang Guest

    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.
     
    Michael Yang, Sep 10, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sea
    Replies:
    1
    Views:
    172
    Ben Morrow
    Oct 18, 2004
  2. carl d.
    Replies:
    1
    Views:
    386
    A. Sinan Unur
    May 10, 2005
  3. Replies:
    5
    Views:
    206
    Randy Kobes
    Oct 12, 2005
  4. mike
    Replies:
    1
    Views:
    243
  5. Ben Bullock
    Replies:
    12
    Views:
    287
    Ben Bullock
    Jul 8, 2008
Loading...

Share This Page