[lug] perl/Tk question

arnie asherman1 at uswest.net
Tue Mar 14 22:48:56 MST 2000


Ralf Mattes wrote:

> and then? If you use CPAN/shell mode to install the modules

When I did i /Bundle.Tk/ it only finds one file, which appears to be for OS2:

Bundle          Bundle::Tk_OS2src (ILYAZ/os2/tk/Bundle-Tk_OS2src-1.00.tar.gz)

Distribution    ILYAZ/os2/tk/Bundle-Tk_OS2src-1.00.tar.gz

Is there a way to point it to a specific file once I find it on an ftp site?
I assume it has to be on a CPAN mirror?

>
> or install them with the 'classic' perl Makefile.PL/make/make install
> everything should be set up ok (does 'make test' work?).

When I installed the tarfile, make test did not return anything. Not an OK,
not an error. Nothing. But I did get the same error when I ran a script.

>
> What is the exact error message when you 'use Tk'? Doesn't perl
> find the module or does the module need a library that it can't
> find?
>
>  Ralf

Can't locate Tk.pm in @INC (@INC contains:
/usr/lib/perl5/5.00502/i386-linux-thread /usr/lib/perl5/5.00502
/usr/lib/perl5/site-perl/i386-linux-thread /usr/lib/perl5/site-perl .) at
/home/arnie/bin/test_tk.pl line 3.
BEGIN failed--compilation aborted at /home/arnie/bin/test_tk.pl line 3.

By the way, the script I have tried to run as a test is extremely simple,
just open a single window:

#!/usr/bin/perl
use Tk;
my $main = MainWindow->new;
MainLoop;

perl shows the error when it gets to 'use Tk;
thanks,

--
arnie sherman
frenomulax at bigfoot.com

"Paradise is exactly like where you are right now,
 only much, much better."
        -Laurie Anderson








More information about the LUG mailing list