I had a problem installing CPAN modules using strawberry perl 5.16.2.2 64-bit and later. When installing from CPAN, dmake cannot create a module with the following error:
dmake.exe: Error executing 'C:\Windows\system32\cmd.exe; /c C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mkpath -- blib\lib\MIME': No such file or directory dmake.exe: Error code -1, while making 'blib\lib\MIME\.exists'
After extensive research, I found that fixing the problem was to add SHELL = cmd.exe to the top of the makefile dmake file created by perl Makefile.PL, and then the module can be installed using
dmake dmake install
The problem is that no CPAN modules will be installed automatically without trying to install CPAN by editing the Makefile and running dmake manually in the cpan / build directory. Using the environment variable SHELL = cmd.exe or MAKESHELL = cmd.exe does NOT work, because the assembly does not work correctly if used.
Does anyone know why the problem is with my 64-bit Windows 7 machine?
Is there any configuration for cpan or some other technique, so I donβt need to manually edit and run the dmake makefile for each CPAN module for my perlberry perl installation?
source share