- To: henry <henry@xxxxxxxxxxxxxx>
- Subject: Re: [SLUG] perl : cant locate tk.pm
- From: Rick Welykochy <rick@xxxxxxxxxxxxx>
- Date: Mon Feb 4 15:02:01 2002
- Cc: slug@xxxxxxxxxxx
- Organization: Praxis Services Pty Limited
> henry wrote:
> I executed (on Redhat 7.1) a perl_script which requires Tk_lib ,
> Then I got a message "Cant locate Tk.pm in @INC : /usr/local/tk........."
>
> I use " rpm -q tk " to find out that tk8.x is installed under /usr/lib
> ,but I still locate Tk.pm .
/usr/lib contains the binary libs, not the perl libs.
Try this
perldoc Tk
If perldoc cannot find Tk.pm, you have to downloa and install it.
> How could I make the perl_script work ?
> or
> how could I modify @INC ?
If you know where Tk.pm, ask yourself why Perl cannot see it, i.e.
it should be in the perl library tree, somewhere in:
/usr/lib/perl5
Try:
find /usr/lib/perl5 -name Tk.pm
-rickw
_____________________________________________
Rick Welykochy || Praxis Services Pty Limited
"This rock salt is over 200 million years old, formed through ancient geological
processes in the German mountains ranges. Best before 04 2003."