Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Trouble installing XML::Parser

by apprentice (Scribe)
on May 05, 2006 at 14:36 UTC ( [id://547666]=perlquestion: print w/replies, xml ) Need Help??

apprentice has asked for the wisdom of the Perl Monks concerning the following question:

I am running Perl 5.8.4 on a linux machine. I have had no trouble installing other modules.

When I runcpan install XML::Parser it identifies dependendencies:
---- Unsatisfied dependencies detected during J/JU/JUNOS/junoscript-perl-6.4I0.tar.gz -----
    XML::DOM
    XML::Parser::PerlSAX
    XML::Parser
Shall I follow them and prepend them to the queue
of modules we are processing right now? yes
I hit enter to allow it, and it seems to have trouble with some of the dependencies and a ton of errors on XML::Parser and it just won't install. There are too many errors for me to figure out why it is failing. I've tried installing each of the dependencies, but that doesn't help, they are failing, too.

Can anyone else install XML::Parser? Any help appreciated,

Apprentice


"Peace, love, and Perl...well, okay, mostly just Perl!" --me

Apprentice

Replies are listed 'Best First'.
Re: Trouble installing XML::Parser
by gellyfish (Monsignor) on May 05, 2006 at 14:47 UTC

    Yes, I've been caught like this before. The junoscript-perl package (probably mistakenly) contains a module called install, so when you mistakenly supply the 'install' command on the cpan command line it tries to install that whole package. You don't need to do that a simple:

    cpan XML::Parser
    Will suffice.

    If you are sufficiently annoyed by this you might want to submit a bug report to either the author of junoscript to rename the module called install, or to the maintainer of CPAN, or the maintainer of the PAUSE indexer. All three are conspiring to cause this in a horrible coincidence.

    /J\

      I tried this, but still get similar errors. I also tried the suggestion from Mirod, to no avail. However, I have tried to narrow the problem down a bit more. There are a ton of errors, but the following are just the beginning and expat.h is definitely not there!
      Expat.xs:12:19: expat.h: No such file or directory Expat.xs:60: error: syntax error before "XML_Parser" Expat.xs:60: warning: no semicolon at end of struct or union Expat.xs:78: error: syntax error before ':' token Expat.xs:79: error: syntax error before ':' token Expat.xs:80: error: syntax error before ':' token Expat.xs:106: error: syntax error before '}' token Expat.xs:106: warning: data definition has no type or storage class Expat.xs:111: error: syntax error before "nsdelim" Expat.xs:111: warning: data definition has no type or storage class Expat.xs:117: error: syntax error before '*' token Expat.xs:118: error: syntax error before '*' token


      "Peace, love, and Perl...well, okay, mostly just Perl!" --me

      Apprentice

        Depending on your platform you may have to install an 'expat-devel' package or compile expat from source in order to get the required header files.

        /J\

        Expat.xs:12:19: expat.h: No such file or directory

        http://search.cpan.org/src/MSERGEANT/XML-Parser-2.34/README
        This is a Perl extension interface to James Clark's XML parser, expat.
        It requires at least version 5.004 of perl and it requires that you have
        release 1.95.0 or greater of expat installed. You can download expat from:
            http://sourceforge.net/projects/expat/

Re: Trouble installing XML::Parser
by mirod (Canon) on May 05, 2006 at 14:49 UTC

    Did you install expat first? expat is the low level (C) library that handles the parsing for XML::Parser.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://547666]
Approved by spiritway
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-26 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found