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

So I am trying to install Perl/Tk 800.024 on a Win2K machine running perl version 5.005_03 and am having some trouble. Just so you know, my installation of Perl came with Matlab.

I tried to generate the makefile by running the Makefile.pl script and it aborted:
Cannot find 'U:\bat\nt\Perl5.18\lib/CORE/perl.h' have you installed C: +\MATLAB6p5\sys\perl\win32\bin\ perl.exe?

So I guess this is because of the way perl was installed on my machine by the admin. I have the necessary libraries, etc. but at a different location than the Config module the script uses thinks. I tried to get around this by creating a virtual 'U:' drive.

The makefiles then successfully generated but when I tried to make after a while it aborted.

Can someone please help me get Tk installed on my machine? Thanks.

Replies are listed 'Best First'.
Re: Help Installing Perl/Tk Win32
by tachyon (Chancellor) on Oct 21, 2004 at 22:47 UTC

    Tk requires that you have a correctly configured C compiler. Additionally that compiler will need to be the same one used to compile Perl (probably M$ CL.EXE on Win32) Additionally you need a number of perl header files ie perl.h (which simply may not be present). See A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++.

    The path of least resistance will be to install ActivePerl (either 5.6.x or 5.8.x) from ActiveState and then use ppm to install a binary of Tk which is as simple as typing ppm install Tk at the command prompt. You can install this new Perl separately to the matlab Perl or possibly overwrite it. The file association for .pl and the path determine which version of perl will be run.

    cheers

    tachyon

      The path of least resistance will be to install ActivePerl (either 5.6.x or 5.8.x)
      So true. Trying to compile modules with perl 5.005_03 is like writing perl 5.6.x, and perl 5.6.x is already written.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

      Yeah thanks for the link...I do have two separate installs of Perl but it would be preferable for me to get Tk installed under 5.005_03. Anyways the major problem was that I didn't build Perl myself but that link helps.

      Thanks.