in reply to Re^3: Using Tcl::Tk Module with Tcl/Tk 8.5
in thread Using Tcl::Tk Module with Tcl/Tk 8.5
>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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using Tcl::Tk Module with Tcl/Tk 8.5
by bart (Canon) on May 22, 2008 at 19:46 UTC | |
by phillc (Novice) on May 28, 2008 at 20:53 UTC | |
by bart (Canon) on May 29, 2008 at 08:03 UTC | |
by phillc (Novice) on May 30, 2008 at 17:55 UTC | |
by phillc (Novice) on May 30, 2008 at 19:14 UTC |