Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

2008 r2 and tk

by tman (Initiate)
on Nov 16, 2010 at 20:54 UTC ( #871829=perlquestion: print w/ replies, xml ) Need Help??
tman has asked for the wisdom of the Perl Monks concerning the following question:

Dear Perl Monks,

Quick question..

I wanted to see if anyone has successfully installed Perl 5.12 and perl tk 804.029 on a Windows 2008 R2 64 bit server. Perl seems to install but the tk install fails the dmake install.

Thanks for any help or suggestions

Comment on 2008 r2 and tk
Replies are listed 'Best First'.
Re: 2008 r2 and tk
by wazoox (Prior) on Nov 16, 2010 at 21:16 UTC
    Tk apparently is in a deep state of abandonment. It compiles on my Linux machines running 5.10 with force (it fails many tests) but doen't seem to compile on 5.12 anyway. Maybe you could use Tcl::Tk instead?

      Here's the CPAN Testers Matrix for Tk v804.029 (which is the latest distribution released on 27-May-2010). As you can see, it compiles on a number of platforms (including Linux) using 5.12.x versions of Perl - you'll also see that it's had many problems.

      I have that version of Tk running on Windows XP and Cygwin both using Perl 5.12.0.

      As something of a minor disclaimer: I'm not advocating its use over other GUI toolkits nor am I claiming I had no problems with the installation process.

      -- Ken

        Thanks for the replies. I am not feeling confident this is going to work. But doing as I am told..

        I found on a 64 bit patch that Slaven put out for a bug very similar to what we are getting, Tk bug 60707, that looks like:

        diff --git c/pTk/mTk/xlib/X11/X.h w/pTk/mTk/xlib/X11/X.h index 95db07f..a1cf10c 100644 --- c/pTk/mTk/xlib/X11/X.h +++ w/pTk/mTk/xlib/X11/X.h @@ -40,7 +40,7 @@ SOFTWARE. /* Resources */ -#ifdef _WIN64</code> +#if defined(_WIN64) && defined(_MSC_VER) typedef __int64 XID; #else typedef unsigned long XID;

        My question is how do I run/install the patch(I asked another guy who writes perl and he was not sure)and there were no instructions on the bug page

        Thanks for the help and great site

        (Thank God for the preview pane)

        Thank you, I stand corrected. I threw up the towel on Tk quite a while ago because of these problems and didn't keep up with the latest news :)
Re: 2008 r2 and tk
by Anonymous Monk on Nov 16, 2010 at 22:33 UTC
    Have you tried Tkx? It's newer and supposed to be more up to date and complete.
      It also has a different syntaxt
Re: 2008 r2 and tk
by kcott (Canon) on Nov 16, 2010 at 21:23 UTC

    Somebody may have exactly these components but, if not, you possibly won't get a response. A better option is to also show the output from dmake install (including details of the platform, versions and so on is good - I'm not suggesting leaving them out). By doing this you may get a reply along the lines of "I had a similar problem with XXX - here's how I fixed it."

    -- Ken

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://871829]
Approved by ww
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-02-14 09:08 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (468 votes), past polls