This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Created attachment 970 [details] transcript of cheklink install Hello, I tried to install version 4.7 of LinkChecker on Mac OS X 10.6.5. I've used the instruction: $ sudo perl -MCPAN -e 'install W3C::LinkChecker' I've answered default for all message. I've got some failed messages: ... Warning: Prerequisite 'HTTP::Message => 5.827' for 'S/SC/SCOP/W3C-LinkChecker-4.7.tar.gz' failed when processing 'G/GA/GAAS/HTTP-Message-6.02.tar.gz' with 'make_test => NO 2 dependencies missing (IO::Compress::Bzip2,IO::Uncompress::Bunzip2)'. Continuing, but chances to succeed are limited. ... BEGIN failed--compilation aborted at bin/checklink line 215. # Failed test at t/00compile.t line 4. t/00compile....ok 2/2# Looks like you failed 1 test of 2. t/00compile....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/2 tests, 50.00% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/00compile.t 1 256 2 1 1 Failed 1/1 test scripts. 1/2 subtests failed. Files=1, Tests=2, 0 wallclock secs ( 0.06 cusr + 0.01 csys = 0.07 CPU) Failed 1/1 test programs. 1/2 subtests failed. make: *** [test_dynamic] Error 1 SCOP/W3C-LinkChecker-4.7.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SCOP/W3C-LinkChecker-4.7.tar.gz Warning (usually harmless): 'YAML' not installed, will not store persistent state Running make install make test had returned bad status, won't install without force $ See attachement for all text. What is wrong? How can I recover? I'm using Link Checker for years. Thanks for your help, Pascal.
From the transcript: Running make for G/GA/GAAS/HTTP-Message-6.02.tar.gz Has already been unwrapped into directory /Users/pascalpignard/.cpan/build/HTTP-Message-6.02-aUOZaM CPAN.pm: Going to build G/GA/GAAS/HTTP-Message-6.02.tar.gz Warning: Prerequisite 'IO::Compress::Bzip2 => 2.021' for 'G/GA/GAAS/HTTP-Message-6.02.tar.gz' already installed but installation looks suspicious. Skipping another installation attempt, to prevent looping endlessly. Warning: Prerequisite 'IO::Uncompress::Bunzip2 => 2.021' for 'G/GA/GAAS/HTTP-Message-6.02.tar.gz' already installed but installation looks suspicious. Skipping another installation attempt, to prevent looping endlessly. [...] Files=15, Tests=529, 0 wallclock secs ( 0.64 cusr + 0.13 csys = 0.77 CPU) GAAS/HTTP-Message-6.02.tar.gz Tests succeeded but 2 dependencies missing (IO::Compress::Bzip2,IO::Uncompress::Bunzip2) [...] Running make install make test had returned bad status, won't install without force [...] t/00compile....HTTP::Message version 5.827 required--this is only version 5.812 at bin/checklink line 215. ...so for some reason, even though installation of new enough HTTP-Message was requested, it was not installed ("won't install without force"), thus the failure. There's nothing we can do about that in the link checker, so I'm marking this as invalid, but if you're adventurous, you may try force-installing HTTP-Message (hopefully it won't mess up anything), something like this should do the trick: perl -MCPAN -e 'force install HTTP::Message' ...and if that actually ends up installing HTTP::Message, then try the link checker installation command again.
Created attachment 974 [details] End of checklink install and error issued
Hello Ville, I've followed your advice, installing HTTP::Message then W3C::LinkChecker. All compile and install fine. But when running checklink has one error: $ checklink index.html W3C Link Checker version 4.7 (c) 1999-2011 W3C GET file:///Volumes/SONY-8GO-PP/Synchro/Blady/index.html fetched in 0.04 seconds Error: 500 Can't locate object method "_is_html" via package "HTTP::Headers" What have I got wrong? See full text in attachment. Thanks again for your help, Pascal.
This is also a sign of an invalid setup of the link checker's dependencies, there's nothing we can do about it. I suppose this time the reason is that your libwww-perl is too old for the HTTP-Message you have installed, and updating libwww-perl might fix it (untested, but something like "perl -MCPAN -e 'install LWP'" might do the trick). http://www.perlmonks.org/?node_id=891517
Hello Ville, it's now ok with LWP update. I've used the instruction: $ sudo perl -MCPAN -e 'install Bundle::LWP' Now, I've got: $ perl -MHTTP::Message -le'print HTTP::Message->VERSION' 6.02 $ perl -MLWP -le'print LWP->VERSION' 6.02 All is now fine, I guess as you reported that this wrong install behavior is known, thanks for your help. By the way, when opening this bug, I couldn't set version and target milestone to 4.7. Pascal.