Broken CPAN fix

jplindstrom on 2004-04-24T21:02:31

Scalar::Util didn't have a ppm for 5.6.1 so I did

perl -MCPAN -e "install Scalar::Util"


The install phase failed miserably, as so many other CPAN installs recently:

Running install for module Scalar::Util
Running make for G/GB/GBARR/Scalar-List-Utils-1.13.tar.gz
Fetching with LWP:
  ftp://ftp.sunet.se/pub/lang/perl/CPAN/authors/id/G/GB/GBARR/Scalar-List-Utils-
1.13.tar.gz
CPAN: MD5 loaded ok
Fetching with LWP:
  ftp://ftp.sunet.se/pub/lang/perl/CPAN/authors/id/G/GB/GBARR/CHECKSUMS
Checksum for \.cpan\sources\authors\id\G\GB\GBARR\Scalar-List-Utils-1.13.tar.gz
ok
Scanning cache \.cpan\build\. for sizes
Can't cd to \.cpan\build\ExtUtils-ModuleMaker-0.31229\./blib/lib/ExtUtils/Module
Maker/testplace/ExtUtils/ModuleMaker/testplace/ExtUtils/ModuleMaker/testplace/Ex
tUtils/ModuleMaker/testplace/ExtUtils/ModuleMaker/testplace/ExtUtils/ModuleMaker
/testplace/ExtUtils../../../../../../../../../../../../../../../../.. at c:/Perl
/lib/File/Find.pm line 535.


I changed the die at line 535 to a confess and found that File::Find wasn't passed weird input. So what's wrong then? There is, for some reason, a very deep directory structure in the Extutils directory, that's what File::Find barfs at.

Removing the directory stucture fixed my CPAN installation.

It appears an older version of ExtUtils::ModuleMake caused this. I think it's fixed in the latest version.

Hopefully someone else with this problem will stumble across this post and be able to solve it.