in reply to cannot install HTML Parser module using CPAN shell

Well, I tried to install CPAN::Reporter but got two error during the make test for two of the dependent modules:

File::Spec

cpan[2]> install File::Spec Running install for module File::Spec Running make for K/KW/KWILLIAMS/PathTools-3.24.tar.gz Is already unwrapped into directory /home/kcella/.cpan/build/PathToo +ls-3.24 Has already been processed within this session Running make test /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bli +b/lib', 'blib/arch')" t/*.t t/crossplatform....ok + 7/50 skipped: Can't load File::Spec::VMS t/cwd..............ok + t/Functions........ok + t/rel2abs2rel......ok + t/Spec.............ok + 90/491 skipped: various reasons t/taint............sh: -c: line 0: unexpected EOF while looking for ma +tching `"' sh: -c: line 1: syntax error: unexpected end of file t/taint............dubious + Test returned status 2 (wstat 512, 0x200) t/tmpdir...........ok + t/win32............skipped all skipped: this is not win32 Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/taint.t 2 512 ?? ?? % ?? 1 test and 97 subtests skipped. Failed 1/8 test scripts, 87.50% okay. 0/581 subtests failed, 100.00% o +kay. make: *** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force Failed during this command: KWILLIAMS/PathTools-3.24.tar.gz : make_test NO


ExtUtils::MakeMaker

t/testlib...............sh: -c: line 0: unexpected EOF while looking f +or matching `"' sh: -c: line 1: syntax error: unexpected end of file t/testlib...............dubious + Test returned status 2 (wstat 512, 0x200) t/VERSION_FROM..........ok + t/vmsish................ok + t/writemakefile_args....ok + t/xs....................Creating library file: libcompilet.dll.a t/xs....................ok + Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/testlib.t 2 512 ?? ?? % ?? 6 tests and 36 subtests skipped. Failed 1/45 test scripts, 97.78% okay. 0/632 subtests failed, 100.00% +okay. make: *** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force


How do I know what a test is for and can I fix the bug myself? From what I understand the module is downloaded locally and built, so I should be able to find the offending code and fix the problem. What is the normal process when make test errors occur?

Replies are listed 'Best First'.
Re^2: cannot install HTML Parser module using CPAN shell
by shigetsu (Hermit) on Feb 07, 2007 at 03:15 UTC

    Both reports contain the line

    make test had returned bad status, won't install without force

    While typing force install DISTRIBUTION will not take the output from make test into consideration and proceed with installing, it will not reveal the cause why the tests did fail.

    I'd leave that to the author(s) of the distributions accompanied by detailed bug-reports.

      Yes, I undertand I can always bypass the results with a force. I'm just not comfortable installing a module that fails a test since it implies that something is inherently wrong with the code. What detailed bug report do I send the author(s)? The same output I posted above?