I had no issues using:

I downloaded the Tk module from CPAN and just did the

perl Makefile.PL dmake dmake test dmake install

No issues.

I've since switched to Strawberry Perl 5.12.2 on Windows XP following the same download and manual build for Tk and had no issues. Note that Strawberry was using its own gcc compiler (I believe version 4.4.3).

UPDATE: I tried this on Windows 7 x64 (Strawberry Perl 5.12.3) and got some serious errors at the 'dmake' step. I found this link:

http://www.nntp.perl.org/group/perl.win32.vanilla/2010/07/msg252.html

Which basically gives this advice. Go to the downloaded working CPAN directory of Tk and 'cd pTk\mTk\xlib\X11' and edit the file 'X.h'.

Starting at 43: 43: #ifdef _DWIN64 44: typedef __int64 XID; 45: #else 46: typedef unsigned long XID; 47: #endif I was able to correct this by changing this to 43: #ifdef _DWIN64 44: #include <inttypes.h> 45: typedef __int64 XID; 46: #else 47: typedef unsigned long XID; 48: #endif

Change back to the working CPAN directory of Tk (cd ..\..\..\..) and run 'dmake'. It should work now. You can follow with 'dmake test' and 'dmake install'.


In reply to Re: Getting Perl/Tk to run with a recent Perl version by VinsWorldcom
in thread Getting Perl/Tk to run with a recent Perl version by notyetagm

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.