Subject: | CPANPLUS::Config.pm missing 'use URI::file;', breaks with minicpan |
The file c:\strawberry\perl\lib\CPANPLUS\Config.pm is missing 'use
URI::file;'. This cpanp to bomb with the following erros if
c:\strawberry\minicpan exists and is a directory.
Can't locate object method "new" via package "URI::file" (perhaps you
forgot to load "URI::file"?) at
C:/strawberry/perl/lib/CPANPLUS/Config.pm line 153.
Compilation failed in require at
C:/strawberry/perl/lib/CPANPLUS/Configure.pm line 7.
BEGIN failed--compilation aborted at
C:/strawberry/perl/lib/CPANPLUS/Configure.pm line 7.
Compilation failed in require at
C:/strawberry/perl/lib/CPANPLUS/Backend.pm line 7.
BEGIN failed--compilation aborted at
C:/strawberry/perl/lib/CPANPLUS/Backend.pm line 7.
Compilation failed in require at C:/strawberry/perl/lib/CPANPLUS.pm line 7.
BEGIN failed--compilation aborted at C:/strawberry/perl/lib/CPANPLUS.pm
line 7.
Compilation failed in require at C:\strawberry\perl\bin/cpanp line 8.
BEGIN failed--compilation aborted at C:\strawberry\perl\bin/cpanp line 8.
I have not tested Perl-Dist-Strawberry 2.00_02, but browsing the source
at
http://cpansearch.perl.org/src/CSJEWELL/Perl-Dist-Strawberry-2.00_02/share/strawberry/perl/lib/CPANPLUS/Config.pm.tt,
it looks like the 'use' is still missing.
TO REPRODUCE:
Install Strawberry Perl 10.0.0.6. Install CPAN::Mini by whatever means.
Run 'minicpan -l c:\strawberry\minicpan -r [...]'. Run 'cpanp', and the
error messages above appear.
WORKAROUND:
Install your minicpan someplace other than c:\strawberry\minicpan. This
will require manually configuring CPANPLUS with the location.
FIX:
Add the following line to C:/strawberry/perl/lib/CPANPLUS/Config.pm:
use URI::file;
I put mine after 'use Module::Load;', but I believe it could go anywhere
after 'use warnings;' and before the first '=pod'