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

Wrote first perl script and manager tells me to make it an executable. Discovered PAR and downloaded. Did perl Makefile.pl which ran OK. Then did nmake and received the following error: C:\Program Files\Perl\Packer\PAR-Packer-0.982>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. C:\strawberry\perl\bin\perl.exe "-Minc::Module::Install" -e "extract_pa r(q(PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par))" syntax error at -e line 1, next char ) Missing right curly or square bracket at -e line 1, at end of line Execution of -e aborted due to compilation errors. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff' Stop. It looks like the line being complained about is coming from a file called Makefile. Can someone please explain to me what I should do now? Thank you.

Replies are listed 'Best First'.
Re: nmake PAR error
by Bloodnok (Vicar) on Mar 19, 2009 at 19:28 UTC
    It would help a little if you enclosed the command session output in code tags (<c></c>) - that being said...
    • the Makefile is the file generated by the perl Makefile.pl step
    • ..syntax error at -e line 1, next char ) Missing right curly or square bracket at -e line 1 suggests that the error is in the perl one-liner:
      C:\strawberry\perl\bin\perl.exe "-Minc::Module::Install" -e "extract_p +ar(q(PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par))"
      contained in the generated make script.
    What happens i.e. do you still get the same error, if you run the one-liner by hand at the command prompt ?

    What happens if you change q(PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par) to read 'PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par' in the one-liner and re-run the one-liner by hand at the command prompt ?

    A user level that continues to overstate my experience :-))
Re: nmake PAR error
by Anonymous Monk on Mar 19, 2009 at 22:10 UTC
      dmake solved the problem. I'm now promoting myself from Newbie 1.0 to Newbie 1.01 :-). Thanks, Monks.