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

I have Strawberry Perl installed on Win7 laptop. I tried to manually install the Tk Module (since the Corporate Network I am connected to blocks the FTP Port) on my laptop, but it failed when I ran the NMAKE command. The error I got was:

syntax error at -e line 1, near "'755') " 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.

Here are lines 748 to 769 from the Makefile file that Makefile.PL generated for the Tk install (Tk-804.029):

# --- MakeMaker linkext section: linkext :: $(LINKTYPE) $(NOECHO) $(NOOP) # --- MakeMaker dlsyms section: Tk.def: Makefile.PL $(PERLRUN) -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Tk\", 'DLBASE' => '$(BASEEXT)', 'DL_FUNC +S' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" # --- MakeMaker dynamic section: dynamic :: $(FIRST_MAKEFILE) $(INST_DYNAMIC) $(INST_BOOT) $(NOECHO) $(NOOP)

Any ideas what I can do to fix this error so I can get Tk successfully installed on my laptop? Thanks for your time and consideration, dd

Replies are listed 'Best First'.
Re: Get NMAKE U1077 error when installing Tk Module 804.029
by Corion (Patriarch) on May 23, 2011 at 07:04 UTC

    Strawberry Perl comes with and is configured for dmake, not nmake. The tools use a different syntax.

    I recommend you try using dmake instead of nmake:

    perl Makefile.PL dmake dmake test dmake install

      @Corion: Thank you so very much! Your recommendation was spot-on! Tk successfully installed and I even ran a simple test case in a (Strawberry) perl script just now and it worked like a champ! Many, many thanks for all your help. dd

        Same thing applies for active state perl too. dmake also comes as default package in activestate perl too.