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

I have cygwin installed on my machine and I am trying to install HTML::Parser, but keep getting the following error when trying to install its dependency HTML::Tagset...
cpan[1]> install HTML::Tagset CPAN: Storable loaded ok Going to read /home/kcella/.cpan/Metadata Database was generated on Sat, 03 Feb 2007 21:27:44 GMT Running install for module HTML::Tagset Running make for P/PE/PETDANCE/HTML-Tagset-3.10.tar.gz CPAN: Digest::SHA loaded ok CPAN: Compress::Zlib loaded ok Checksum for /home/kcella/.cpan/sources/authors/id/P/PE/PETDANCE/HTML- +Tagset-3.10.tar.gz ok Scanning cache /home/kcella/.cpan/build for sizes HTML-Tagset-3.10/ HTML-Tagset-3.10/Tagset.pm HTML-Tagset-3.10/Changes HTML-Tagset-3.10/MANIFEST HTML-Tagset-3.10/META.yml HTML-Tagset-3.10/README HTML-Tagset-3.10/MANIFEST.SKIP HTML-Tagset-3.10/t/ HTML-Tagset-3.10/t/pod.t HTML-Tagset-3.10/t/00_about_verbose.t HTML-Tagset-3.10/t/01_old_junk.t HTML-Tagset-3.10/Makefile.PL Removing previously used /home/kcella/.cpan/build/HTML-Tagset-3.10 CPAN.pm: Going to build P/PE/PETDANCE/HTML-Tagset-3.10.tar.gz Checking if your kit is complete... Looks good Writing Makefile for HTML::Tagset CPAN: YAML loaded ok cp Tagset.pm blib/lib/HTML/Tagset.pm /usr/bin/make -- OK Running make test /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bli +b/lib', 'blib/arch')" t/*.t t/00_about_verbose....ok + t/01_old_junk.........ok + t/pod.................sh: -c: line 0: unexpected EOF while looking for + matching `"' sh: -c: line 1: syntax error: unexpected end of file t/pod.................dubious + Test returned status 2 (wstat 512, 0x200) Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/pod.t 2 512 ?? ?? % ?? Failed 1/3 test scripts, 66.67% okay. 0/3 subtests failed, 100.00% oka +y. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force Failed during this command: PETDANCE/HTML-Tagset-3.10.tar.gz : make_test NO
Any ideas?

Replies are listed 'Best First'.
Re: cannot install HTML::Parser using CPAN shell
by xdg (Monsignor) on Feb 04, 2007 at 18:05 UTC
    t/pod.................dubious

    This is an error in a test of the Pod for HTML::Tagset, probably with Test::Pod. Some developers leave Pod testing on, forcing everyone who tests their code to test the Pod as well.

    Since the other tests pass, you should be able to safely tell CPAN.pm: "force install HTML::Tagset" and then be on your merry way.

    As a side note, you may want to install CPAN::Reporter, so that you can automatically submit test failure reports to authors. That might help get little annoying things like this fixed.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      Thanks for the help. The force install worked perfectly.
Re: cannot install HTML::Parser using CPAN shell
by Herkum (Parson) on Feb 04, 2007 at 18:15 UTC
    As xdg stated this is a Pod test which really does not mean much. It might a problem with the test on your particular system or they just screwed up altogether. Either way, you should be able to do this to force install.
    force install HTML::Tagset

    Be sure to send petdance an email mentioning this problem too.

Re: cannot install HTML::Parser using CPAN shell
by Anonymous Monk on Feb 05, 2007 at 05:33 UTC
    Your title should not contain HTML::Parser
Re: cannot install HTML Parser module using CPAN shell
by kcella (Beadle) on Feb 07, 2007 at 02:45 UTC
    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?

      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?