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

Hi

I tried to install WWW::Mechanize with sudo cpan WWW::Mechanize but some tests of HTTP-Response-Encoding fail.

What am I supposed to do in this case?

Can trying to force the installation damage my system?

Or should I first dig into the test to find the cause?

here the log:

CPAN: Storable loaded ok (v2.21) Going to read '/home/anonymous/.cpan/Metadata' Database was generated on Sun, 18 Feb 2009 15:27:11 GMT CPAN: YAML loaded ok (v0.70) Going to read 221 yaml files from /home/anonymous/.cpan/build/ CPAN: Time::HiRes loaded ok (v1.9719) DONE Restored the state of none (in 10.5746 secs) Running install for module 'HTTP::Response::Encoding' Running make for D/DA/DANKOGAI/HTTP-Response-Encoding-0.05.tar.gz Has already been unwrapped into directory /home/anonymous/.cpan/buil +d/HTTP-Response -Encoding-0.05-4SNEaz Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t Dubious, test returned 8 (wstat 2048, 0x800) Failed 8/13 subtests t/boilerplate.t ... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for tes +ting POD coverage Failed 1/5 test programs. 8/18 subtests failed. t/pod.t ........... ok t/pod.t ........... ok Test Summary Report ------------------- t/01-file.t (Wstat: 2048 Tests: 13 Failed: 8) Failed tests: 5-12 Non-zero exit status: 8 Files=5, Tests=18, 2 wallclock secs ( 0.15 usr 0.03 sys + 0.94 cusr + 0.13 csys = 1.25 CPU) Result: FAIL DANKOGAI/HTTP-Response-Encoding-0.05.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DANKOGAI/HTTP-Response-Encoding-0.05.tar.gz Running make install make test had returned bad status, won't install without force
PLEASE HELP!!!!1 ;-)

Replies are listed 'Best First'.
Re: Tests fail for HTTP-Response-Encoding
by Anonymous Monk on Oct 29, 2010 at 07:32 UTC
    Going to read '/home/anonymous/.cpan/Metadata'
    Database was generated on Sun, 18 Feb 2009 15:27:11 GMT

    That database should be updated (IIRC, for it to be that old you had to disable automatic updating).

    cpan[1]>reload index
      Thanks! I think I found the problem, a friend did a setup of minicpan for me. Seems like he was a little exaggerating when he called it foolproof... ;)
Re: Tests fail for HTTP-Response-Encoding
by ig (Vicar) on Oct 28, 2010 at 21:42 UTC

    You are trying to install version 0.05. I get the same errors if I try to install 0.05, but no errors if I install 0.06, which appears to be the current version available from CPAN.

    You could try installing HTTP::Response::Encoding separately. This should install 0.06. Then you should be able to complete the installation of WWW::Mechanize.