Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 68386
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: dennis.a.dinaro [...] intel.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 804.029
Fixed in: (no value)



Subject: Get NMAKE U1077 error when trying to build Tk 804.029
I have Strawberry Perl 5 version 12 subversion 3 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. [download] 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) [download] 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
From: dennis.a.dinaro [...] intel.com
On Mon May 23 02:57:44 2011, ddEpic wrote: Show quoted text
> I have Strawberry Perl 5 version 12 subversion 3 installed on Win7 > laptop. I tried to manually install the Tk Module (since the
Corporate Show quoted text
> 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. > [download] > 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) > > > [download] > Any ideas what I can do to fix this error so I can get Tk
successfully Show quoted text
> installed on my laptop? Thanks for your time and consideration, dd >
******************************************************************** 5/23/2011 5:30am I received a recommendation from Corion over on Perl monks that has solved my problem. Basically, I should have been using 'dmake', not 'nmake' to install the Tk module into my Strawberry Perl as per Corion: "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" I performed the above steps and the installation went off without a hitch. I even ran a simple test to be sure that Tk was functional (per the recommendation of the Perl/Tk page on cpan: #!/usr/bin/perl -w use Tk; use strict; my $mw = MainWindow->new; $mw->Label(-text => 'Hello, world!')->pack; $mw->Button( -text => 'Quit', -command => sub { exit }, )->pack; MainLoop; Please close this bug and classify it as resolved. Thx, dd