Finally fixed the install of Tcl-0.95 with:

>sudo perl Makefile.PL --tclsh /usr/bin/tclsh8.5 --tclconfig /usr/lib/tcl8.5/tclConfig.sh --include /usr/include/tcl8.5

Following on from this Tcl::Tk also installed without error.

It probably was the include path that needed fixing.

Thanks.

However, now my Perl script fails to execute. The error I receive is:

String found where operator expected at
/usr/local/share/perl/5.10.0/Tcl/Tk.pm line 575, near
"Carp::croak 'Usage: $interp = new Tcl::Tk($display)'"
(Do you need to predeclare Carp::croak?)
syntax error at /usr/local/share/perl/5.10.0/Tcl/Tk.pm
line 575, near "Carp::croak 'Usage: $interp = new
Tcl::Tk($display)'"
BEGIN not safe after errors--compilation aborted at
/usr/local/share/perl/5.10.0/Tcl/Tk.pm line 700.
Compilation failed in require at vidcap.pl line 3.
BEGIN failed--compilation aborted at vidcap.pl line 3.

Adding to this, I've tried to fix it be adding "use Carp;" to Tk.pm results in the following:

Can't locate Carp/croak.pm in @INC (@INC contains:
/etc/perl /usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.10.0 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at vidcap.pl line 5.
BEGIN failed--compilation aborted at vidcap.pl line 5.

Perhaps there's something wrong with my Perl installation. However, removing and then re-installing effects too many dependencies. Any further ideas?


In reply to Re^4: Using Tcl::Tk Module with Tcl/Tk 8.5 by phillc
in thread 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.