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

Hello, I am using Perl on win32 for the first time (Cygwin) and I am trying to install some modules that I would like to use. I have installed nmake but when I go to install the package (after creating the Makefile) using nmake I get this error:

NMAKE: fatal error U1073: don't know how to make '/usr/lib/perl5/5.8/cygwin/Config.pm'

My Config.pm is located in the correct directory and nmake is located under /usr/bin (where perl resides). Any suggestions on how to resolve?

Replies are listed 'Best First'.
Re: nmake win32
by Corion (Patriarch) on Oct 24, 2006 at 13:32 UTC

    If you're using Cygwin, and the Cygwin Perl, you need to also use the (Cygwin build of) GNU make. nmake by Microsoft is only useful if you're using an ActiveState build of Perl or another Perl configured to use nmake.exe. Mixing Cygwin tools and native Win32 tools will give you lots of pain because Cygwin has a very different idea of how files should be named than the rest of Win32 has.

      THis is a big help. I will try to find a cygwin version of make for cygwin Perl. The challenge I see initially is that my setup.exe seems to "skip" some of the offered make utilities. I have scanned a few of the mirrors but no gnu make utility seems to be available. If you know of a mirror or a site for this let me know!!! :-) Thanks a bunch.

        Yes, I do know of a site for this: Cygwin

        Or: the hard way.

        Or, run setup.exe. make is found under "Devel" in the tree. Toggle the "New" column until it says something useful like "3.81-1" and there is an "X" in the "Bin?" checkbox.

        HTH,

        planetscape
Re: nmake win32
by planetscape (Chancellor) on Oct 24, 2006 at 15:20 UTC

    Under Cygwin, you should be able to manually build modules by doing the following:

    Download from CPAN, say (for example) http://search.cpan.org/CPAN/authors/id/M/MS/MSHELOR/Digest-SHA-5.43.tar.gz

    Unzip/untar/un-archive, using folder names, into a temp directory, cd to that directory, then:

    perl makefile.pl make make test make install

    See also: A Guide to Installing Modules.

    If you have problems with any of those steps, post a reply to this thread and someone will follow up.

    Good luck,

    planetscape
      yes, but the problem is making sure I am using the correct make utility here. If I can troubleshoot this then I should be able to resolve the problem and install the module as described above. Expo

        Yes, I understand. That's why we've all been pointing you to Cygwin's native make. :-)

        planetscape
        but the problem is making sure I am using the correct make utility

        That's easy to determine. At the command prompt simply enter:

        perl -V:make

        And that will tell you the correct make utility to use. (ie that will tell you to use 'make' ... a sentiment already echoed throughout this thread :-)

        Cheers,
        Rob
Re: nmake win32
by blazar (Canon) on Oct 24, 2006 at 14:09 UTC
    Hello, I am using Perl on win32 for the first time (Cygwin) and I am trying to install some modules that I would like to use.

    You don't need nmake: that is for the toolchain used to build ActivePerl under Windows, and this is the reason why you probably found it mentioned somewhere in connection with installing some modules there. But AFAIK Cygwin provides you with a simulated *NIX environment, or something like that (no need to be picky here). Thus the toolchain will be the GNU one, and the make utility to be used is the one that is part of it.