Perl programmer for hire: download my resume (PDF).
John Bokma Perl
freelance Perl programmer

Comments: Make for Windows: NMake

11 comments

If a Perl module is not available for the ActiveState version of Perl (ActivePerl), you might be able to download it from the Comprehensive Perl Archive Network (CPAN), and try to build and install it on Microsoft Windows.

Read the rest of Make for Windows: NMake.

Comments

Thank you very much for posting this. I've been trying to find out how to do this for years.!!!

Posted by Matt at 16:56 GMT on 7 September 2005

I need Perl to work to install an R package; so I got perl installed. It said it needed make so I got Nmake as per your instructions. I put NMAKE.ERR and NMAKE.EXE into C:\Perl\bin as per instructions.

Then I tried the install again --- it said

'make' is not recognized as an internal or external command,
operable program or batch file.
*** Installation of ts.sup failed ***

Is there something else that I need to do?

cheers,

Rolf

Posted by Rolf at 00:55 GMT on 8 November 2005

Hi Rolf,

What did you try to install exactly, and did you run perl Makefile.PL again?

Posted by John Bokma at 05:42 GMT on 8 November 2005

You have to use NMAKE instead of MAKE

perl Makefile.PL
NMAKE
NMAKE TEST
NMAKE INSTALL
Posted by at 19:46 GMT on 10 November 2005

Thanks for the info on nmake. It's very helpful. I encounter an error, however, trying to install DBD-Sybase:

makefile(41) : fatal error U1001: syntax error : illegal character '/' in macro Stop.

I'm not sure where to look up error codes or how to trouble-shoot. Is there any online resource that I could use? Is this an error in the MakeFile?

Thanks,

Tom

Posted by Tom at 18:11 GMT on 15 December 2005

Thanks a lot. I am perl beginner, but want to write some useful stuf hence wanted some modules. At last I got somewhere. Still lots of things to be worked out but atleast i've got a start

Posted by Beedi at 13:42 GMT on 4 July 2006

Thanks for spelling this all out. I'm new to this and I needed CGI::Sessions. Most documentation out there are for Unix or if it's for windows they tell you to just PPM. Your instructions were clear and did not make my eyes bleed. A good thing. Thanks!

Posted by emilyylime at 22:12 GMT on 23 August 2006

I would recommend a version of NMAKE higher than 1.5. Otherwise, you may run into problems like this NMAKE : fatal error U1095 Running `make ` on Windows XP is dying with an "expanded command line too long" error.

See: pugs 'make clean' fatal error on ms windows

Posted by stephen at 11:26 GMT on 15 November 2006

Hi,

I am getting the similar error "NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'".

So I tried to search higher version.

But where from I can get it. I searched Microsoft site..but could not loacte it.

Any help will be appriciated.

Regards

Posted by Kash at 07:29 GMT on 9 February 2008

Thanks for the directions. I could not have figured that out without you. It took me a while to find the nmake link in the MSFT notes - but it's there, just read the note - and installation worked like a breeze. I'm off to parse some HTML!

Thanks, Matt

Posted by Matt at 05:47 GMT on 14 March 2008

To get the 64 bit version of nmake (for Windows 7) you can install the Windows SDK. It will install nmake to "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" on Windows 7 without prompting for an alternate directory.

Posted by designatevoid at 17:35 GMT on 1 December 2010

Post a comment

Note that your comment doesn't show up immediately. I review each comment before I add it to this site.

Check the Follow this page option if you want to receive an email each time a comment is posted to this page, including yours. A link to turn this option off will be included with each email.

Internet adresses will be converted automatically. You can use the following notation to specify anchor text for a link: [url=http://example.com/]example text[/url].