Hi, I need to install the Tk module onto a Windows 2003 server running ActivePerl 5.10.0. Unfortunately the server is not (and can't be) connected to the internet, I need to be able to burn a CD with all relevent install stuff. For other modules I am using nmake. Procedure is:
1) Install Perl 5.10.0
2) Copy nmake15.exe to /perl/bin and run it
3) Unzip module
4) Cd module directory
5) perl makefile.pl
6) nmake
7) nmake test
8) nmake install

and this works. However with Tk I get an error at stage 6 (see below). Does anyone have a work around for this?

output of perl makefile.pl
C:\temp\BFU-Install\bulk-firmware-1.0.0\Install\Tk-804.028>perl Makefi +le.pl C:\Perl\bin\perl.exe is installed in C:\Perl\lib okay PPM for perl5.010000 Test Compiling config/perlrx.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compiling config/pmop.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compiling config/pregcomp2.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compiling config/signedchar.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compile/Run config/unsigned.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compiling config/Ksprintf.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c 'cl' is not recognized as an internal or external command, operable program or batch file. Skip InputO on MSWin32 Skip Mwm on MSWin32 Skip WinPhoto on MSWin32 WARNING: DISTVNAME is not a known parameter. 'DISTVNAME' is not a known MakeMaker parameter name. Note (probably harmless): No library found for -lcomctl32 Note (probably harmless): No library found for -limm32 Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib Generating Dependencies for MSWin32, win_arch=MSWin32 Test Compiling config/Hstrtoul.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compiling config/Hstrdup.c 'cl' is not recognized as an internal or external command, operable program or batch file. Test Compiling config/Hstrcasecmp.c 'cl' is not recognized as an internal or external command, operable program or batch file. Finding dependencies for ClientWin.c Finding dependencies for Lang_f.c Finding dependencies for Xlib_f.c Finding dependencies for XrmOption.c Finding dependencies for exWinHandle.c Finding dependencies for imgBMP.c Finding dependencies for imgInit.c Finding dependencies for imgInt_f.c Finding dependencies for imgObj.c Finding dependencies for imgUtil.c Finding dependencies for imgWindow.c Finding dependencies for imgXBM.c Finding dependencies for imgXPM.c Finding dependencies for ptkCanvGrid.c Finding dependencies for ptkCanvGroup.c Finding dependencies for stbDItem.c Finding dependencies for stbDashCustom.c Finding dependencies for stbDiStyle.c Finding dependencies for strGlue.c Finding dependencies for strcasecmp.c Finding dependencies for strdup.c Finding dependencies for strtoul.c Finding dependencies for stubs.c Finding dependencies for tclAsync.c Finding dependencies for tclDecls_f.c Finding dependencies for tclEvent.c Finding dependencies for tclHash.c Finding dependencies for tclNotify.c Finding dependencies for tclPreserve.c Finding dependencies for tclTimer.c Finding dependencies for tclWinNotify.c Finding dependencies for tclWinTime.c Finding dependencies for tixCompat.c Finding dependencies for tixDItem.c Finding dependencies for tixDiITxt.c Finding dependencies for tixDiImg.c Finding dependencies for tixDiStyle.c Finding dependencies for tixDiText.c Finding dependencies for tixDiWin.c Finding dependencies for tixError.c Finding dependencies for tixForm.c Finding dependencies for tixFormMisc.c Finding dependencies for tixGrData.c Finding dependencies for tixGrFmt.c Finding dependencies for tixGrRC.c Finding dependencies for tixGrSel.c Finding dependencies for tixGrSort.c Finding dependencies for tixGrUtl.c Finding dependencies for tixGrid.c Finding dependencies for tixHLCol.c Finding dependencies for tixHLHdr.c Finding dependencies for tixHLInd.c Finding dependencies for tixHList.c Finding dependencies for tixImgCmp.c Finding dependencies for tixImgXpm.c Finding dependencies for tixImgXpm_f.c Finding dependencies for tixInputO.c Finding dependencies for tixInt_f.c Finding dependencies for tixList.c Finding dependencies for tixNBFrame.c Finding dependencies for tixScroll.c Finding dependencies for tixSmpLs.c Finding dependencies for tixTList.c Finding dependencies for tixUtils.c Finding dependencies for tixVars.c Finding dependencies for tixWinDraw.c Finding dependencies for tixWinXpm.c Finding dependencies for tix_f.c Finding dependencies for tk3d.c Finding dependencies for tkAtom.c Finding dependencies for tkBind.c Finding dependencies for tkBitmap.c Finding dependencies for tkButton.c Finding dependencies for tkCanvArc.c Finding dependencies for tkCanvBmap.c Finding dependencies for tkCanvImg.c Finding dependencies for tkCanvLine.c Finding dependencies for tkCanvPoly.c Finding dependencies for tkCanvPs.c Finding dependencies for tkCanvText.c Finding dependencies for tkCanvUtil.c Finding dependencies for tkCanvWind.c Finding dependencies for tkCanvas.c Finding dependencies for tkClipboard.c Finding dependencies for tkCmds.c Finding dependencies for tkColor.c Finding dependencies for tkConfig.c Finding dependencies for tkCursor.c Finding dependencies for tkDecls_f.c Finding dependencies for tkEntry.c Finding dependencies for tkError.c Finding dependencies for tkEvent.c Finding dependencies for tkEvent_f.c Finding dependencies for tkFileFilter.c Finding dependencies for tkFocus.c Finding dependencies for tkFont.c Finding dependencies for tkFrame.c Finding dependencies for tkGC.c Finding dependencies for tkGeometry.c Finding dependencies for tkGet.c Finding dependencies for tkGrab.c Finding dependencies for tkGrid.c Finding dependencies for tkImage.c Finding dependencies for tkImgBmap.c Finding dependencies for tkImgGIF.c Finding dependencies for tkImgPPM.c Finding dependencies for tkImgPhoto.c Finding dependencies for tkImgPhoto_f.c Finding dependencies for tkImgUtil.c Finding dependencies for tkIntDecls_f.c Finding dependencies for tkIntPlatDecls_f.c Finding dependencies for tkIntXlibDecls_f.c Finding dependencies for tkInt_f.c Finding dependencies for tkListbox.c Finding dependencies for tkMacWinMenu.c Finding dependencies for tkMenu.c Finding dependencies for tkMenuDraw.c Finding dependencies for tkMenubutton.c Finding dependencies for tkMessage.c Finding dependencies for tkObj.c Finding dependencies for tkOldConfig.c Finding dependencies for tkOption.c Finding dependencies for tkOption_f.c Finding dependencies for tkPack.c Finding dependencies for tkPanedWindow.c Finding dependencies for tkPlace.c Finding dependencies for tkPlatDecls_f.c Finding dependencies for tkPointer.c Finding dependencies for tkProperty.c Finding dependencies for tkRectOval.c Finding dependencies for tkScale.c Finding dependencies for tkScrollbar.c Finding dependencies for tkSelect.c Finding dependencies for tkSquare.c Finding dependencies for tkStubImg.c Finding dependencies for tkStyle.c Finding dependencies for tkText.c Finding dependencies for tkTextBTree.c Finding dependencies for tkTextDisp.c Finding dependencies for tkTextImage.c Finding dependencies for tkTextIndex.c Finding dependencies for tkTextMark.c Finding dependencies for tkTextTag.c Finding dependencies for tkTextWind.c Finding dependencies for tkTrig.c Finding dependencies for tkUndo.c Finding dependencies for tkUnixMenubu.c Finding dependencies for tkUnixScale.c Finding dependencies for tkUtil.c Finding dependencies for tkVisual.c Finding dependencies for tkWin3d.c Finding dependencies for tkWinButton.c Finding dependencies for tkWinClipboard.c Finding dependencies for tkWinColor.c Finding dependencies for tkWinConfig.c Finding dependencies for tkWinCursor.c Finding dependencies for tkWinDialog.c Finding dependencies for tkWinDraw.c Finding dependencies for tkWinEmbed.c Finding dependencies for tkWinFont.c Finding dependencies for tkWinImage.c Finding dependencies for tkWinInit.c Finding dependencies for tkWinKey.c Finding dependencies for tkWinMenu.c Finding dependencies for tkWinPixmap.c Finding dependencies for tkWinPointer.c Finding dependencies for tkWinRegion.c Finding dependencies for tkWinScrlbr.c Finding dependencies for tkWinSend.c Finding dependencies for tkWinTest.c Finding dependencies for tkWinWindow.c Finding dependencies for tkWinWm.c Finding dependencies for tkWinX.c Finding dependencies for tkWindow.c Finding dependencies for tk_f.c Finding dependencies for xcolors.c Finding dependencies for xdraw.c Finding dependencies for xgc.c Finding dependencies for ximage.c Finding dependencies for xutil.c Writing Makefile for Tk::pTk Writing Makefile for Tk::pod Writing Makefile for Tk::demos Finding dependencies for X.xs Writing Makefile for Tk::X Finding dependencies for Xlib.xs Writing Makefile for Tk::Xlib Writing Makefile for Tk::Tixish Finding dependencies for Pixmap.xs Writing Makefile for Tk::Pixmap Finding dependencies for TixGrid.xs Writing Makefile for Tk::TixGrid Writing Makefile for Tk::TextList Finding dependencies for Text.xs Writing Makefile for Tk::Text Finding dependencies for TList.xs Writing Makefile for Tk::TList Finding dependencies for Scrollbar.xs Writing Makefile for Tk::Scrollbar Finding dependencies for Scale.xs Writing Makefile for Tk::Scale Test Compile/Run config/has_png.c 'cl' is not recognized as an internal or external command, operable program or batch file. Building libpng.lib Note (probably harmless): No library found for -lm Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib Assuming cl is visual C of some kind Assuming cl is visual C of some kind Finding dependencies for PNG.xs Finding dependencies for imgPNG.c Missing ')' trailing: L) && defined(PNG_MAX_MALLOC_64K) at C:/temp/BFU-Install/bul +k-firmware -1.0.0/Install/Tk-804.028/Tk/MakeDepend.pm line 104, <libpng/pngconf.h +> line 142 3. Writing Makefile for Tk::PNG Finding dependencies for NBFrame.xs Writing Makefile for Tk::NBFrame Finding dependencies for Menubutton.xs Writing Makefile for Tk::Menubutton Finding dependencies for Listbox.xs Writing Makefile for Tk::Listbox Test Compile/Run jpeg/has_jpeg.c 'cl' is not recognized as an internal or external command, operable program or batch file. Building jpeg/libjpeg.lib Assuming cl is visual C of some kind Finding dependencies for JPEG.xs Finding dependencies for imgJPEG.c Writing Makefile for Tk::JPEG Finding dependencies for IO.xs Writing Makefile for Tk::IO Finding dependencies for HList.xs Writing Makefile for Tk::HList Finding dependencies for Event.xs Finding dependencies for eventWin32Dll.c Finding dependencies for pTkCallback.c Finding dependencies for tclAsync.c Finding dependencies for tclEvent.c Finding dependencies for tclNotify.c Finding dependencies for tclPlatEvent.c Finding dependencies for tclPlatNotfy.c Finding dependencies for tclPlatTime.c Finding dependencies for tclTimer.c Writing Makefile for Tk::Event Finding dependencies for Entry.xs Writing Makefile for Tk::Entry Finding dependencies for Win32Site.xs Writing Makefile for Tk::DragDrop::Win32Site Writing Makefile for Tk::DragDrop Finding dependencies for Compound.xs Writing Makefile for Tk::Compound Finding dependencies for Canvas.xs Writing Makefile for Tk::Canvas Finding dependencies for Tk.xs Finding dependencies for chnGlue.c Finding dependencies for encGlue.c Finding dependencies for evtGlue.c Finding dependencies for objGlue.c Finding dependencies for tixGlue.c Finding dependencies for tkGlue.c Finding dependencies for tkGlue_f.c Finding dependencies for tkWin32Dll.c Tests in PNG Tests in JPEG Tests in Event Writing Makefile for Tk C:\temp\BFU-Install\bulk-firmware-1.0.0\Install\Tk-804.028>


Output of nmake
C:\temp\BFU-Install\bulk-firmware-1.0.0\Install\Tk-804.028>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cd pTk && nmake DEFINE="" -nologo cl -c -I.. -I../pTk/mTk/xlib -I. -Ibitmaps -I../pTk/mTk/xlib + -nologo - GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_ +FCRYPT -DU SE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_ +IMPLICIT_S YS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DPERLDLL -MD -Zi -DNDEBUG -O1 + -DVERSIO N=\"804.028\" -DXS_VERSION=\"804.028\" "-IC:\Perl\lib\CORE" Clien +tWin.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x1' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop.


output of perl -V
C:\temp\BFU-Install\bulk-firmware-1.0.0\Install\Tk-804.028>perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration +: Platform: osname=MSWin32, osvers=5.00, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D +_CONSOLE - DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC + -DPERL_IM PLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX' +, optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='12.00.8804', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64 +', lseeksi ze=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -l +ibpath:"C: \Perl\lib\CORE" -machine:x86' libpth=\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib + comdlg32 .lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uui +d.lib ws2_ 32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.l +ib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool +.lib comd lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib + uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvc +rt.lib libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl510.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt: +ref,icf - libpath:"C:\Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1002 [283697] 32809 Load 'loadable object' with non-default file extension 32728 64-bit fix for Time::Local Built under MSWin32 Compiled at Jan 10 2008 11:00:53 @INC: C:/Perl/site/lib C:/Perl/lib . C:\temp\BFU-Install\bulk-firmware-1.0.0\Install\Tk-804.028>

In reply to Windows Install of Tk without PPM by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.