On Sun, Jan 10, 2010 at 09:10:47AM -0500, Shawn H Corey wrote: > When I try to install WWW::Mechanize, I get: > > t/cookies.t .............. Can't locate HTTP/Server/Simple/CGI.pm in > @INC (@INC contains: t/ > /home/shawn/.cpan/build/WWW-Mechanize-1.60-0tJ38m/blib/lib > /home/shawn/.cpan/build/WWW-Mechanize-1.60-0tJ38m/blib/arch /etc/perl > /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 > /usr/local/lib/site_perl .) at t//TestServer.pm line 7. > BEGIN failed--compilation aborted at t//TestServer.pm line 7. > Compilation failed in require at t/cookies.t line 22. > BEGIN failed--compilation aborted at t/cookies.t line 22. > t/cookies.t .............. Dubious, test returned 2 (wstat 512, 0x200) > No subtests run > > Why isn't HTTP/Server/Simple/CGI.pm loaded as a dependency?
Either because you've not configured CPAN.pm to follow dependencies automatically, or because it did try to download and install that module but it failed its tests. To check the former ... $ perl -MCPAN -e shell > o conf prerequisites_policy if it says anything other than 'follow' then it's set up wrong*. To check the latter, read *all* of the info that it spits out, not just the output from the last few tests. * in the vanishingly rare cases where you don't want that, then you'd not be asking about dependencies here. Therefore, even though this is a matter of opinion, my opinion is right and anything else is wrong :-) -- David Cantrell | Reality Engineer, Ministry of Information "The whole aim of practical politics is to keep the populace alarmed (and hence clamorous to be led to safety) by menacing it with an endless series of hobgoblins, all of them imaginary" -- H. L. Mencken