Subject: | Install problem on Win32 if Win32::DriveInfo is not installed |
Build.PL lists Win32::DriveInfo correctly as a build-required module if the OS is MSWin32. But Build.PL first tries to load Sys::Filesystem::Mswin32 to see if the platform is supported by Sys::Filesystem. This errors out, so module installation fails. Only if Win32::DriveInfo is installed beforehand the installation works OK.
I'm not sure what an elegant solution would be.
Below output of Build.PL on Windows if Win32::DriveInfo is not installed:
Couldn't require Sys::Filesystem::Mswin32 : Can't locate Win32/DriveInfo.pm in @INC (@INC contains: C:/work/Sys-Filesystem/lib C:/St
rawberryPerl/perl/site/lib C:/StrawberryPerl/perl/vendor/lib C:/StrawberryPerl/perl/lib .) at C:/work/Sys-Filesystem/lib/Sys/Filesys
tem/Mswin32.pm line 29.
BEGIN failed--compilation aborted at C:/work/Sys-Filesystem/lib/Sys/Filesystem/Mswin32.pm line 29.
Compilation failed in require at (eval 42) line 2.
at C:/StrawberryPerl/perl/site/lib/Module/Pluggable.pm line 32
Couldn't require Sys::Filesystem::Mswin32 : Attempt to reload Sys/Filesystem/Mswin32.pm aborted.
Compilation failed in require at (eval 44) line 2.
at C:/StrawberryPerl/perl/site/lib/Module/Pluggable.pm line 32
Can't be used (Can't locate object method "new" via package "Sys::Filesystem::Mswin32" at C:/work/Sys-Filesystem/lib/Sys/Filesystem.
pm line 104.
) - OS not supported or bad maintained?