> From: Richard Hainsworth 

> On running cpan to get Tcl::Tk , cpan reports an error and requests the
> author be informed.

Thank you for your report,
Indeed, there are items to fix, I'll do my best to fix and release by Jan, 19.

Despite of this, you already have setup ready for the usage.

> 
> I've tried repeatedly to install TCL::Tk. I want to use BLT.

BTW Tcl::Tk is pure-perl, but - indeed - its better to have clean install 
rather than 'force' option.
Yet, for using BLT Tcl::Tk isn't necessary, you can use  BLT with just Tcl.pm 
module or Tkx,

Like this:

$interp->Eval(<<'EOS');
# tcl/tk code here
package require Blt
pack [text .t]
# etc etc etc
EOS

However if you're planning to use BLT with perl/Tk syntax - then Tcl::Tk is 
indeed needed.

> 
> Below is the print out using cpan.
> 
> I have Ubuntu 13.10
> 
> I have tried installing Tcl with synaptic, but there isnt an ubuntu package 
> for
> Tcl::Tk.
> 
> Also there is a library installed with BLT already and it can be accessed with
> tcl.
> 
> CPAN.pm: Building V/VK/VKON/Tcl-1.02.tar.gz

.....

> Result: PASS
> VKON/Tcl-1.02.tar.gz
> /usr/bin/make test -- OK
> Running make install
....

Cool, 
actually the Tcl CPAN module is the crucial point as a perl-to-tcl/tk bridge.


> CPAN.pm: Building V/VK/VKON/Tcl-Tk-1.04.tar.gz

....

> t/text.t ........ can't find package widget::scrolledwindow at
> /home/richard/.local/share/.cpan/build/Tcl-Tk-1.04-
> 2tDOWV/blib/lib/Tcl/Tk.pm
> line 794.

This message means that your tcl/tk installation should also have snit2 or 
snit, 
because $widget->Scrolled(...) is implemented used 'snit'.

I will try to figure out on best way to check this and then give to user useful 
message.

For now - just install 'snit2' into your tcl/tk.

> t/text.t ........ Dubious, test returned 2 (wstat 512, 0x200) Failed 3/3 
> subtests
> t/tk-mw.t ....... ok t/unicode.t ..... ok t/zzPhoto.t ..... skipped: no Img
> extension available

Best regards,
Vadim.

Reply via email to