Quoth
carl....@email.edcc.edu:
> I'm not getting Win32::DirSize installed on Strawberry Perl ( DWIM Perl )
> This is perl 5, version 14, subversion 2 (v5.14.2) built for
> MSWin32-x86-multi-thread
>
> I'm using 'cpan' to do the install.
[...]
>
> From the 'cpan' prompt I'm issuing the command 'install Win32::DirSize
>
> The output of the run from this command indicates that the name is being
> changed to 'Win32DirSize'.
>
> I have read the output from the perllocal.pod. According to it the file
> was installed into C:\Dwimperl\perl\site\lib>, however when checking
> there I find there is no folder with this name, no pm installed in the
> lib folder and no folder installed in the Win32 folder. Checking in the
> folder 'auto' in the lib directory I do find a folder for Win32DirSize
> with a single file named .packlist of zero file size.
I'm not surprised the automatic installer is having trouble: that
distribution is malformed. The Makefile.PL and other files which should
be at the top level are instead under a Win32/DirSize directory. I would
recommend manually deleting that Win32DirSize directory under lib\auto
and then installing the module by hand; that is:
- Find a copy of the tarball (either find the one cpan downloaded or
download it again from
search.cpan.org) and untar it somewhere.
You could also use 'look Win32::DirSize' from the CPAN shell.
- Change directory to the Win32\DirSize directory inside the
unpacked tarball (there should be a Makefile.PL in that
directory).
- Make sure the Strawberry stuff is in your PATH and run the usual
perl Makefile.PL
dmake
dmake install
As a general recommendation, not connected with this issue, I would
suggest that anyone maintaining a Perl installation using CPAN directly
should take a look at App::cpanminus. IME it works better than CPAN.pm.
Ben