Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

problems installing xml::parser

by mifflin (Curate)
on Jan 05, 2012 at 17:44 UTC ( #946441=perlquestion: print w/ replies, xml ) Need Help??
mifflin has asked for the wisdom of the Perl Monks concerning the following question:

perl 5.8.8 on redhat linux

expat 2.0.1 installed

trying to install XML::Parser 2.41 I get the following errors

[tauser02@gfmwsp11lds XML-Parser-2.41]$ make test make[1]: Entering directory `/home/tauser02/XML-Parser-2.41/Expat' make[1]: Leaving directory `/home/tauser02/XML-Parser-2.41/Expat' PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/astress.........ok + t/cdata...........ok + t/decl............ok 1/30 + syntax error at line 14, column 3, byte 214: %ext; <![%bar;[ ==^ <!ATTLIST bar xyz (a|b|c) 'b'> ]]> error in processing external entity reference at line 21, column 3, by +te 3161: <!ELEMENT bar ANY> <!ATTLIST bar big CDATA 'This is a large string value to test wheth +er the declaration parser still works when the entity or attribute de +fault value may be broken into multiple calls to the default handler. + 01234567890123456789012345678901234567890123456789012345678901234567 +890123456789 01234567890123456789012345678901234567890123456789012345 +678901234567890123456789 01234567890123456789012345678901234567890123 +456789012345678901234567890123456789 01234567890123456789012345678901 +234567890123456789012345678901234567890123456789 01234567890123456789 +012345678901234567890123456789012345678901234567890123456789 01234567 +890123456789012345678901234567890123456789012345678901234567890123456 +789 01234567890123456789012345678901234567890123456789012345678901234 +567890123456789 01234567890123456789012345678901234567890123456789012 +345678901234567890123456789 01234567890123456789012345678901234567890 +123456789012345678901234567890123456789 01234567890123456789012345678 +901234567890123456789012345678901234567890123456789 01234567890123456 +789012345678901234567890123456789012345678901234567890123456789 01234 +567890123456789012345678901234567890123456789012345678901234567890123 +456789 01234567890123456789012345678901234567890123456789012345678901 +234567890123456789 '> ]> ==^ <foo/> at /home/tauser02/XML-Parser-2.41/blib/lib/XML/Parser.pm line 187 t/decl............dubious + Test returned status 9 (wstat 2304, 0x900) DIED. FAILED tests 2-30 Failed 29/30 tests, 3.33% okay t/defaulted.......ok + t/encoding........ok + t/external_ent....ok + t/file............ok + t/finish..........ok + t/namespaces......ok + t/parament........NOK 2Confused test output: test 3 answered after tes +t 6 t/parament........NOK 4Confused test output: test 4 answered after tes +t 7 Confused test output: test 5 answered after test 8 Confused test output: test 6 answered after test 9 Confused test output: test 7 answered after test 10 error in processing external entity reference at line 2, column 32, by +te 76: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo SYSTEM "t/foo.dtd"> ===============================^ <foo>Happy, happy <bar>&joy;, &joy;</bar> at /home/tauser02/XML-Parser-2.41/blib/lib/XML/Parser.pm line 187 t/parament........dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2-6, 8, 12 Failed 7/12 tests, 41.67% okay t/partial.........ok + t/skip............ok + t/stream..........ok + t/styles..........ok + Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/decl.t 9 2304 30 58 193.33% 2-30 t/parament.t 255 65280 12 8 66.67% 2-6 8 12 Failed 2/14 test scripts, 85.71% okay. 36/130 subtests failed, 72.31% +okay. make: *** [test_dynamic] Error 255
Any advice?

Comment on problems installing xml::parser
Download Code
Re: problems installing xml::parser
by runrig (Abbot) on Jan 05, 2012 at 17:52 UTC
    Whatever the problem is, it is reported already.
    Update: see rt://54747. Updating your expat library might help.
      I thought 2.0.1 was the latest, at least I cannot find a more recent one on sourceforge.
        Ah, I didn't see that you already had 2.0.1. Is that the only version installed? And is the build picking up that version?
Re: problems installing xml::parser
by Anonymous Monk on Mar 13, 2012 at 19:12 UTC

    Just install libexpat1-dev something like that. You must install the development package.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-09-03 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls