I'd like to create a GUI based application that takes advantage of widget enhancements in Tcl/Tk 8.5

I guess my first question is whether this is possible using the Tcl::Tk module from CPAN? As this is a direct bridge with Tcl/Tk I am assuming it is.

However, I cannot get Tcl:Tk module to install correctly on a system that has only Tk 8.5 and Tcl 8.5 (not Tk 8.4 and Tcl 8.4) installed.

Initially I was unable to run the makefile with:

> perl Makefile.pl

by declaring the path of tclsh I was seemingly able to overcome this:

> perl Makefile.pl --tclsh /usr/bin/tclsh8.5

However, the output does say:

Warning: prerequisite Tcl 0.9 not found.
Writing Makefile for Tcl::Tk

From this point on I was able to make and make install the module. Although there were further warnings about Tcl 0.9 or better not being found.

I am sure that Tcl 8.5 is installed:

> whereis tcl8.5
> tcl8: /usr/lib/tcl8.5 /usr/include/tcl8.5

So why does the module complain?

Anyway, I think the root of all my problems stem from this pre-requisite not being met. Even after compiling and installing the module, when I attempt to execute a script the error is:

Can't locate Tcl.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8
/usr/share/perl/5.8 /usr/local/lib/site_perl .) at
/usr/local/share/perl/5.8.8/Tcl/Tk.pm line 4.
BEGIN failed--compilation aborted at /usr/local/share
/perl/5.8.8/Tcl/Tk.pm line 4.
Compilation failed in require at perltktest.pl line 3.
BEGIN failed--compilation aborted at perltktest.pl line 3.

If I install Tcl 8.4 and Tk 8.4 all works well with the module, but I can't access any 8.5 enhancements. So perhaps, Tcl::Tk doesn't support 8.5 as it stands. Can anyone give me some pointers to updating the module to look for the 8.5 versions of Tcl and Tk?

Many thanks!


In reply to Using Tcl::Tk Module with Tcl/Tk 8.5 by phillc

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.