in reply to Re: Problem installing packages from cpan on windows 7
in thread Problem installing packages from cpan on windows 7

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%

Replies are listed 'Best First'.
Re^3: Problem installing packages from cpan on windows 7
by Anonymous Monk on Mar 01, 2012 at 08:17 UTC
    Stop calling mingw32-make and call dmake
      I have tried it using Strawberry perl (includes dmake) and with Active state perl with no luck. Actually on my system i am having MKSNT kit installed. So i removed it from my path variable and tried following setup: 1. kept only Strawberry perl in my PATH, So it included dmake in it. Now when i build Makefile, issue is PERL and FULLPERL are having perl path with single "\". So it gave error on building it using dmake. So i modified makefile to modify its path to have "\\". Now when i tried to run dmake, it appeared to be in hanging state. Can some please point me on how to fix this backslash issue.
      sub init_DIRFILESEP { my($self) = shift; # The ^ makes sure its not interpreted as an escape in nmake $self->{DIRFILESEP} = $self->is_make_type('nmake') ? '^\\' : $self->is_make_type('dmake') ? '\\\\' : '\\'; }
      perl -V:make dmake

        I have tried it using Strawberry perl ...

        ??? Stop editing makefiles and deal with one thing at a time. You're calling the wrong make, ActiveState with mingw uses dmake. call dmake. forget about DFSEP

      I have been using correct version of dmake, that's why i cleaned up my PATH variable and tried these steps seperately with Active state Perl and Strawberry perl (one Perl in setup at once and for Active state perl, mingw was set in path else not). But with both the versions if i try to install module from cpan, it failed due to path for perl not found. So i manually did, "perl Makefile.pl" and noticed that the Makefile which is generated is not being picked by dmake. It gives error and to resolve that i put // in PERL and FULLPERL in Makefile. This fixed the problem for Perl not found but the create process error appeared.