sarbjit has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am using Windows 7 (64 bit) with Active state 64 bit perl installed on my system. Now i want to use some modules e.g. Win32::GuiTest, now if i use ppm this module was listed not to be available in basic version of Active state perl and is available in buisness edition. So i tried CPAN for installing any module but i am having some problems. For successfully installing package, i downloaded minGW and added in my search path, also i downloaded dmake from cpan and added in same location. Now when i am trying to install any module from cpan following error is coming:-
Writing Makefile for DBI Writing MYMETA.yml C:\perl64\bin\perl.exe -MExtUtils::Command -e "mkpath" -- blib\lib\DBI C:perl64binperl.exe: not found dmake.exe: Error code 127, while making 'blib\lib\DBI\Changes.pm' TIMB/DBI-1.618.tar.gz C:\mingw\bin\dmake.exe -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
So i tried to install manually and i did following: 1. Downloaded package 2. did perl Makefile.pl I edited Makefile to have PERL path as C:\\perl64\\bin\\perl.exe
50 C% make C:\Perl64\cpan\build\DBI-1.618-FNuTFA>mingw32-make C:\\perl64\\bin\\perl.exe -MExtUtils::Command -e "mkpath" -- blib\lib\ +DBI C:\\perl64\\bin\\perl.exe -MExtUtils::Command -e "rm_f" -- blib\lib\DB +I\Changes. pm C:\\perl64\\bin\\perl.exe -MExtUtils::Command -e "cp" -- Changes blib\ +lib\DBI\Ch anges.pm process_begin: CreateProcess(NULL, rem, ...) failed. make (e=2): The system cannot find the file specified. mingw32-make: *** [config] Error 2 51 C%
Can anyone please help me on how to resolve this issue. Thanks in Advance, Sarbjit

Replies are listed 'Best First'.
Re: Problem installing packages from cpan on windows 7
by Anonymous Monk on Mar 01, 2012 at 07:45 UTC

    I edited Makefile to have PERL path as C:\\perl64\\bin\\perl.exe

    Wrong approach. Simply use C:\perl64\bin\perl.exe to call Makefile.PL

    C:\perl64\bin\perl.exe Makefile.PL

    See A Guide To Installing Modules

      I tried it this way as well, but still get same error :
      67 C% C:\perl64\bin\perl.exe makefile.pl Set up gcc environment - 4.6.1 Writing Makefile for ExtUtils::FakeConfig Writing MYMETA.yml Using: 'dmake' 68 C% make C:\Perl64\cpan\build\extutils-fakeconfig-0.12-ac7efk>mingw32-make C:perl64binperl.exe: not found mingw32-make: *** [blib\lib\ExtUtils\\.exists] Error 127 69 C%
        Stop calling mingw32-make and call dmake