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

Hi monks

I installed a strawberry perl on my machine. I've found that mingw32-make can't build makefile produced by Makefile.PL correctly but dmake can. I 'm just a little curious to know if I can build makefile by mingw32-make on win32.



I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

  • Comment on what is difference between dmake and mingw32-make?[OT]

Replies are listed 'Best First'.
Re: what is difference between dmake and mingw32-make?[OT]
by syphilis (Archbishop) on Sep 06, 2009 at 10:51 UTC
    'dmake' and 'mingw32-make' have slightly different syntax rules. With Strawberry Perl, when you run 'perl Makefile.PL', the makefile that gets produced is written according to dmake's rules - it doesn't work with 'mingw32-make'. To get that makefile to work with mingw32-make, you would either have to make amendments to it, or change $Config{make} to mingw32-make (and also patch ExtUtils::MakeMaker so that it is capable of writing a makefile that's compatible with mingw32-make). This could possibly be done, but no-one has yet bothered, afaik.

    To find out the flavour of make that 'perl Makefile.PL' honours, you run perl -V:make (which is what Anonymous Monk was getting at).

    Cheers,
    Rob
      Many Thanks syphilis!

      Your experience about C in perl enviorenment always help me a lot! (and English skills!:))

      To be honest, compared to call C function by Inline on win32, building XS modules is so hard. I often stumbled to install some modern modules such as Catalyst, gtk2 and moose on win32. I think this embarrassed situation would not improved until perl6 release.



      I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Re: what is difference between dmake and mingw32-make?[OT]
by Anonymous Monk on Sep 06, 2009 at 10:09 UTC