in reply to Failes to find a module with Strawbery 5.30

Can't locate Win32/Capture.pm in @INC ...

For me on Strawberry-5.30.0 the building of Win32::GUI::DIBitmap is being skipped because that module can't be built using gcc. At least that's what the Makefile.PL claims.
Therefore that module does not get installed.
However, that module is a pre-requisite for Win32::Capture ... therefore Win32::Capture won't install.
You can force the installation of Win32::Capture by cd'ing to the Win32::Capture build directory and running gmake install
For me that build directory was C:\Users\me\.cpan\build\Win32-Capture-1.6-1.
However, doing so is futile:
C:\>perl -MWin32::Capture -le 1 Can't locate Win32/GUI/DIBitmap.pm in @INC (you may need to install th +e Win32::GUI::DIBitmap module) (@INC contains: C:/_64/strawberry-5.30 +.0/perl/site/lib C:/_64/strawberry-5.30.0/perl/vendor/lib C:/_64/stra +wberry-5.30.0/perl/lib) at C:/_64/strawberry-5.30.0/perl/site/lib/Win +32/Capture.pm line 8. BEGIN failed--compilation aborted at C:/_64/strawberry-5.30.0/perl/sit +e/lib/Win32/Capture.pm line 8. Compilation failed in require at -e line 1.
I don't see much chance of a workaround. According to its Makefile.pl, Win32::GUI::DIBitmap won't even build with 64 bit msvc compiler.
Do you have a 32 bit Microsoft compiler handy ?

Another hack is to edit Win32/Capture.pm so that it no longer tries to load Win32::GUI::DIBitmap, but I suspect (untested) that might render Win32::Capture unusable.
Still, it's something else for you to try if you think it might be useful.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Failes to find a module with Strawbery 5.30
by levW (Beadle) on Jul 01, 2019 at 09:13 UTC

    Thanks,Rob. Very usefull info...Will try to get away without this module.