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? |