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

I seem to be unable to install most CPAN modules any more. I'm running Strawberry Perl 5.10.0 for MSWin32-x86-multi-thread. Output from an example follows:
Running install for module 'Parse::RecDescent' Running Build for D/DC/DCONWAY/Parse-RecDescent-1.964.tar.gz Prepending C:\strawberry\cpan\build\Module-Build-0.3603-YRU8ly/blib/ar +ch C:\stra wberry\cpan\build\Module-Build-0.3603-YRU8ly/blib/lib to PERL5LIB for +'get' Has already been unwrapped into directory C:\strawberry\cpan\build\P +arse-RecDescent-1.964-zT6n4e Prepending C:\strawberry\cpan\build\Module-Build-0.3603-YRU8ly/blib/ar +ch C:\strawberry\cpan\build\Module-Build-0.3603-YRU8ly/blib/lib to PE +RL5LIB for 'make' Has already been made Prepending C:\strawberry\cpan\build\Module-Build-0.3603-YRU8ly/blib/ar +ch C:\strawberry\cpan\build\Module-Build-0.3603-YRU8ly/blib/lib to PE +RL5LIB for 'test' Running Build test t\00.load.t ............... 1/1 # Testing Parse::RecDescent 1.964 t\00.load.t ............... ok t\basics.t ................ ok t\leftop_cap.t ............ ok t\pod.t ................... Can't open perl script "w": No such file o +r directory t\pod.t ................... Dubious, test returned 2 (wstat 512, 0x200 +) No subtests run t\re_capture_return.t ..... ok t\separated_repetition.t .. ok Test Summary Report ------------------- t\pod.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=6, Tests=28, 1 wallclock secs ( 0.01 usr + 0.08 sys = 0.09 CP +U) Result: FAIL Failed 1/6 test programs. 0/28 subtests failed. DCONWAY/Parse-RecDescent-1.964.tar.gz c:\strawberry\perl\bin\perl.exe ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DCONWAY/Parse-RecDescent-1.964.tar.gz Running Build install make test had returned bad status, won't install without force Failed during this command: DCONWAY/Parse-RecDescent-1.964.tar.gz : make_test NO
The jobs always fail in the same way:
t\pod.t ................... Can't open perl script "w": No such file o +r director y t\pod.t ................... Dubious, test returned 2 (wstat 512, 0x200 +)
I dont understand why perl script "w" is being executed? I'm sure the problem is something to do with Test::Pod - but how to fix? I'm having similar problems with almost every new module I try to install.

Replies are listed 'Best First'.
Re: CPAN install problems
by syphilis (Archbishop) on Apr 06, 2010 at 07:24 UTC
    I'm sure the problem is something to do with Test::Pod

    I think so, too. Which version of Test::Pod do you have ?

    I'd just hide Test/Pod.pm (eg rename it to Test/Pod.pm_hide) until the problem gets sorted. First thing to do after the rename would be to update Test::Pod to the latest version (iff it's not already) and see if that fixes the problem.

    Cheers,
    Rob
      Thanks for you idea Rob. I don't know why but Test::Pod seemed not to be installed. When I installed it from CPAN I was then able to install other modules OK.
Re: CPAN install problems
by Anonymous Monk on Apr 06, 2010 at 06:36 UTC
    but how to fix?

    cpan> force install Parse::RecDescent
    or
    $ cpanp i Parse::RecDescent --skiptest --force