Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

CPAN: failed to install XML::Simple (unix)

by jeanluca (Deacon)
on Apr 28, 2006 at 07:56 UTC ( #546208=perlquestion: print w/replies, xml ) Need Help??

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

Dear Monks

I just tried to install XML::Simple on a unix machine (Sol8) with a perl version v5.8.2.
Can someone explain to me why it failed, but maybe more important, how to solve it!!
2/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 16/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 17/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 18/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 19/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 20/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 21/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 22/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 23/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 24/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........ok 25/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........NOK 32# Failed test (t/1_XMLin.t at line 380) + # got: 'Unable to recognise encoding of this document at /usr +/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingDetect.pm l +ine 96. # ' # expected: '' t/1_XMLin.........ok 36/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96. t/1_XMLin.........NOK 38# Failed test (t/1_XMLin.t at line 426) + # Structures begin differing at: # $got->{cdata} = '<greeting>Hello, world!</greeting>>' # $expected->{cdata} = '<greeting>Hello, world!</greeting>' t/1_XMLin.........NOK 39# Failed test (t/1_XMLin.t at line 432) + # Structures begin differing at: # $got->{x} = '<y>one</y>><y>two</y>>' # $expected->{x} = '<y>one</y><y>two</y>' t/1_XMLin.........ok 54/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 55/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 56/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 57/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 58/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 59/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 66/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 67/122Unable to recognise encoding of this docume +nt at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingD +etect.pm line 96, <STDIN> line 1. t/1_XMLin.........NOK 122# Failed test (t/1_XMLin.t at line 1443) + # Structures begin differing at: # $got->{pubpath}{test1}{title} = 'web_source -> web_target1' # $expected->{pubpath}{test1}{title} = 'web_source -&gt; web_targe +t1' # Looks like you failed 4 tests of 122. t/1_XMLin.........dubious + Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 32, 38-39, 122 Failed 4/122 tests, 96.72% okay t/2_XMLout........NOK 47# Failed test (t/2_XMLout.t at line 302) + # Structures begin differing at: # $got->{c} = '&amp;C&amp;' # $expected->{c} = '&C&' t/2_XMLout........ok 186/196Unable to recognise encoding of this docum +ent at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/Encoding +Detect.pm line 96. t/2_XMLout........ok 187/196Unable to recognise encoding of this docum +ent at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/Encoding +Detect.pm line 96. t/2_XMLout........ok 188/196Unable to recognise encoding of this docum +ent at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/Encoding +Detect.pm line 96. t/2_XMLout........ok 196/196# Looks like you failed 1 tests of 196. + t/2_XMLout........dubious + Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 47 Failed 1/196 tests, 99.49% okay (less 1 skipped test: 194 okay +, 98.98%) t/3_Storable......ok + t/4_MemShare......ok + t/5_MemCopy.......ok + t/6_ObjIntf.......ok + t/7_SaxStuff......ok + t/8_Namespaces....ok + t/9_Strict........ok 11/38Unable to recognise encoding of this documen +t at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingDe +tect.pm line 96. t/9_Strict........ok 13/38Unable to recognise encoding of this documen +t at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingDe +tect.pm line 96. t/9_Strict........ok 30/38Unable to recognise encoding of this documen +t at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingDe +tect.pm line 96. t/9_Strict........ok 32/38Unable to recognise encoding of this documen +t at /usr/local/lib/perl5/site_perl/5.8.2/XML/SAX/PurePerl/EncodingDe +tect.pm line 96. t/9_Strict........ok + t/A_XMLParser.....skipped all skipped: no XML::Parser Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/1_XMLin.t 4 1024 122 4 3.28% 32 38-39 122 t/2_XMLout.t 1 256 196 1 0.51% 47 1 test and 1 subtest skipped. Failed 2/11 test scripts, 81.82% okay. 5/454 subtests failed, 98.90% o +kay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic' /usr/ccs/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force cpan>

Thanks a lot in advance
Luca

Replies are listed 'Best First'.
Re: CPAN: failed to install XML::Simple (unix)
by jhourcle (Prior) on Apr 28, 2006 at 15:34 UTC
Re: CPAN: failed to install XML::Simple (unix)
by grantm (Parson) on Apr 28, 2006 at 21:11 UTC

    Short Story:

    This is a bug in XML::SAX. Install XML::SAX::Expat and then try the XML::Simple install again

    Longer Story:

    XML::Simple delegates the parsing of XML to either XML::SAX or XML::Parser. SAX will be used if it is installed, otherwise XML::Parser is the fallback. SAX is cool because it allows you to plug in different parser modules and allows you to assemble pipelines of filter modules (XML::Simple can be used there). Unfortunately the 'PurePerl' parser included in the SAX distribution has bugs (for which I have submitted patches). But even if it wasn't buggy, you'd want to install a faster (C-based) parser module anyway. XML::SAX::Expat is a good choice.

Re: CPAN: failed to install XML::Simple (unix)
by jeanluca (Deacon) on May 01, 2006 at 07:15 UTC
    Yes that works!!!!!!

    Thanks a lot! Luca
      or use yum yum install perl-XML-Simple

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2019-12-15 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?