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

Stop calling mingw32-make and call dmake
  • Comment on Re^3: Problem installing packages from cpan on windows 7

Replies are listed 'Best First'.
Re^4: Problem installing packages from cpan on windows 7
by sarbjit (Initiate) on Mar 01, 2012 at 09:58 UTC
    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

Re^4: Problem installing packages from cpan on windows 7
by sarbjit (Initiate) on Mar 02, 2012 at 08:25 UTC
    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.