Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

installing Tk for strawberry

by cheche (Initiate)
on May 26, 2010 at 21:34 UTC ( #841828=perlquestion: print w/ replies, xml ) Need Help??
cheche has asked for the wisdom of the Perl Monks concerning the following question:

i'm trying to install Tk for strawberry. i tried 3 ways, all failed.

1. ppm > install Tk Error installing package 'Tk': Read a PPD for 'Tk', but it is not + intended for this build of Perl (MSWin32-x86-multi-thread-5.12) 2. cpan > install Tk gcc -c -I.. -I../pTk/mTk/xlib -I. -Ibitmaps -I../pTk/mTk/xlib - +s -O2 -DWIN32 - DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPE +RL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -DPERL +DLL -s -O2 -DVERSION=\"804.028\" -DXS_VERSION=\"804.028\" "-IC:\s +trawberry\perl\ lib\CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__ +USE_FIXED_PROTO TYPES__ tkWinX.c In file included from tkWinX.c:28: c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../.. +/i686-w64-mingw 32/include/commctrl.h:15:2: error: #error _WIN32_IE setting confl +icts tkWinX.c: In function 'TkGetServerInfo': tkWinX.c:163: warning: format '%d' expects type 'int', but argume +nt 3 has type ' DWORD' tkWinX.c:163: warning: format '%d' expects type 'int', but argume +nt 4 has type ' DWORD' tkWinX.c:163: warning: format '%d' expects type 'int', but argume +nt 5 has type ' DWORD' tkWinX.c: In function 'TkWinXInit': tkWinX.c:277: warning: implicit declaration of function 'TclWinSe +tInterfaces' tkWinX.c:326: warning: cast from pointer to integer of different +size tkWinX.c:328: warning: passing argument 3 of 'GetLocaleInfoA' fro +m incompatible pointer type c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../.. +/i686-w64-mingw 32/include/winnls.h:707: note: expected 'LPSTR' but argument is o +f type 'WCHAR * ' tkWinX.c:329: warning: 'return' with a value, in function returni +ng void tkWinX.c:331: warning: 'return' with a value, in function returni +ng void tkWinX.c: In function 'Tk_TranslateWinEvent': tkWinX.c:841: warning: implicit declaration of function 'Lang_Win +Event' dmake: Error code 129, while making 'tkWinX.o' dmake.EXE: Error code 255, while making 'pTk\libpTk.a' SREZIC/Tk-804.028.tar.gz C:\strawberry\c\bin\dmake.EXE -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: SREZIC/Tk-804.028.tar.gz : make NO 3. manually installing as described here: http://startperl.blogspot.co +m/2007/11/perl-module-how-to-install-perl-module.html fails with step 2 `nmake`: NMAKE : fatal error U1073: don't know +how to make 'C:/Dokumente'

my strawberry version is: Win32 strawberryperl 5.12.0.1 #1 Thu May 6 16:09:27 2010 i386

Comment on installing Tk for strawberry
Download Code
Re: installing Tk for strawberry
by lamprecht (Friar) on May 26, 2010 at 22:24 UTC
      works, thanks
Re: installing Tk for strawberry
by syphilis (Canon) on May 26, 2010 at 22:49 UTC
    Hi,
    For a ppm installation, try:
    ppm install http://www.bribes.org/perl/ppm/Tk.ppd
    There's a 5.12 ppm there (for Tk-804.028.0.0), so that should work fine.
    If you want the developer release (Tk-804.028502.0.0):
    ppm install http://www.bribes.org/perl/ppm/Tk_.ppd
    Cheers,
    Rob
      This appears to work for 32bit Windows, could you tell me how to install TK for 64 bit Windows?
         cpanp i Tk
Re: installing Tk for strawberry
by syphilis (Canon) on May 26, 2010 at 23:06 UTC
    ... commctrl.h:15:2: error: #error _WIN32_IE setting conflicts

    In commctrl.h that ships with Strawberry, at around line 15, we find:
    /* FIXME: This really must be 0x0501 !!! */ #if (_WIN32_IE < 0x0500) #error _WIN32_IE setting conflicts
    I think this is a complaint about the version of Internet Explorer that you have. What version are you running ? If it's ancient, then you probably ought to upgrade it .... though it's hard to believe that it could be so ancient as to be pre-5.0 (which is what I think the error is implying).

    Cheers,
    Rob
      though it's hard to believe that it could be so ancient as to be pre-5.0 (which is what I think the error is implying)

      Ah ... that's *not* what is being implied. The problem probably is that, in tkWinX.c we have:
      #ifndef _WIN32_IE #define _WIN32_IE 0x0300 #endif #include <commctrl.h>
      Rearranging the order in that file should fix the problem:
      #include <commctrl.h> #ifndef _WIN32_IE #define _WIN32_IE 0x0300 #endif
      In the latest Tk devel version, they've taken a different approach - which should also fix the problem (as was suggested earlier):
      #if !defined( _WIN32_IE) && !defined(__MINGW64_VERSION_MAJOR) #define _WIN32_IE 0x0300 #endif #include <commctrl.h>
      Cheers,
      Rob
Re: installing Tk for strawberry
by Xevier_Strong (Initiate) on May 27, 2010 at 07:22 UTC
    I have installed Tk in strawberry 5.12.0.1 recently and didn't fined any problem.
    Use latest version: Tk-804.028_503
    Try manual installation if CPAN install fails. Try following:
    1. Download tar.gz file
    2. Extract using Winzip or 7zip
    3. go to the folder "Tk-804.028_503" in command prompt
    4. type: dmake
    5. type: dmake test
    5. type: dmake install

    In my case Tk test failed. u can skip that and install directly

      So per the Strawberry Perl recommendation I deleted version 5.10. Then I installed...

      padre-on-strawberry-5.12.3.0-v5.exe

      in its place. Now, none of these work...

      cpan -i Tk
      cpanm -i Tk
      cpanp -i Tk

      The cpanp looks like it worked in the console for giving no errors. But calling...

      perl -e "use Tk"

      ...fails to locate Tk with the usual missing module complaint.

      So after unzipping...

      Tk-804.030.tar.gz

      from CPAN and trying...

      dmake

      ...on it, I get this result.

      dmake: Parsing include file [C:\strawberry\c\bin\startup\winnt\recipe +s.mk]. dmake: Openning [C:\strawberry\c\bin\startup\winnt\mingw\recipes.mk] +for read (fail) dmake: Include file [C:\strawberry\c\bin\startup\winnt\mingw\recipes. +mk] was not found. dmake: Closing [C:\strawberry\c\bin\startup\winnt\recipes.mk] dmake: Openning [project.mk] for read (fail) dmake: Include file [project.mk] was not found. dmake: Closing [C:\strawberry\c\bin\startup\startup.mk] dmake: Openning [makefile.mk] for read (fail) dmake: Infering prerequisite(s) and recipe for [makefile.mk] dmake: Trying prerequisite [RCS\makefile.mk] for [makefile.mk] dmake: Time stamp of [makefile.mk] is 0 dmake: Openning [makefile] for read (fail) dmake: Infering prerequisite(s) and recipe for [makefile] dmake: Trying prerequisite [RCS\makefile] for [makefile] dmake: Time stamp of [makefile] is 0

      Looking into the unzipped directory I find no file named...

      makefile.mk

      ...anywhere in there. And in the console the final complaint is...

      dmake: Error: -- no target

      I am making my attempt from Windows Vista Ultimate where the old version of Strawberry worked okay. And the really annoying thing is I can't seem to find an install EXE for Strawberry 5.10 to go back to what I had before. I have a copy of my old strawberry directory, but just copying it back seems maybe not a good idea.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://841828]
Approved by redgreen
Front-paged by redgreen
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-10-23 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls