gary kuipers has asked for the wisdom of the Perl Monks concerning the following question:

Back In Windows Hell, I am!
I'm working happily with Tk on Linux (RH7.0) and Perl. I've been asked to move a Linux perl program to Win 2000 (perl v. 5.6.0) it has a simple Tk front end. I tried installing Tk800.223 on Win 2000 but the compiles failed (both dmake and nmake).Active State and CPAN searches gave me NOTHING on Win32 binaries. Everything points pback to Tcl.
Is there:
1) a downloadable binary that can be easily installed
or
2) something other than Tk to draw a window from perl.
?
This was supposed to be a one hour project but has stretched into 2 days ... just like everything else when perl modules and Windows collide (sigh!)
Thanks!
Gary

Replies are listed 'Best First'.
Re: perl/Tk installation on Win 2000
by rchiav (Deacon) on Aug 04, 2001 at 20:59 UTC
    you have ActiveStates perl distro? then just go to a command line and type..
    ppm install TK
    Rich
      God love ya! However I now have another problem:

      "Tk object version 800.022 does not match $Tk::XS_VERSION 800.023 at E:/Perl/lib/Dynaloader.pm line 219. Compilation failed in require at test.pl ..."

      Did I damage my perl install by trying to compile Tx 800.023?

      Thanks! Gary
        It may be the a bit of incompatibility... I think Activestate defaults by installing ver 800.022. If you do install the newer version - look at the readme file for ActiveState and follow the instructions on how to install. Good Luck!
        To be honest, I really don't know what that exact error is. It possibly could be from trying to install the 800.023 version. If you haven't installed (m)any other modules, the easiest way to try to fix it might be to uninstall, make sure there's no files left and resintall activeperl.

        I know that's not an optimal remedy, and it lacks understanding the problem (root cause analisys), but I'd guess your main concern is getting it working.

        Rich

Re: perl/Tk installation on Win 2000
by acid06 (Friar) on Aug 04, 2001 at 23:04 UTC
    Well... as rchiav already said, if you're using ActivePerl you can easily install Tk... however... in some machines i've tried to install it, i got a weird "no AddScrollBars.pm" error when trying to run a Tk app, which i didn't figure out how to fix. Hope this doesn't happen with the newest ActivePerl build...