Perl/Tk problems (was Can you help me?)
Kris
kancer at kancer.978.org
Fri Nov 5 13:35:33 EST 1999
Or a much easier way
If you have perl on your RH6.1 box you probably have CPAN
"perl -MCPAN -e shell"
(first time on CPAN you have to answer a few questions)
"install Tk"
Done
-Also I would like to say hello -I'm new to the list, I work in
Mediaone's network group and have lived in the Boston area for all my 23
year life. Most of my experiance is Linux based, Solaris is a close
second.
-Kris
On Fri, 5 Nov 1999, John Abreau wrote:
> The error message shows that the Tk.pm perl module is not installed. I'm
> not sure how Redhat would handle this; I generally just install perl
> modules from the source.
>
> First you'd fetch the latest version of Tk.pm from cpan.org:
>
> wget http://www.cpan.org/modules/by-module/Tk/Tk800.015.tar.gz
>
> Then untar it and cd into its directory:
>
> tar xzf Tk800.015.tar.gz
> cd Tk800.015
>
> Now build and install it (as root):
>
> perl Makefile.PL
> make
> make install
>
> On 5 Nov 1999, Shirley Rieven wrote:
>
> > I recently got a linux machine running redhat 6.1 and would like to
> > write perl scripts using the Tk library. I am an ok perl programmer
> > but totally new to tk. Because I am trying to learn tk, I was reading
> > the O'Reilly book Perl/Tk which said to do the following test to
> > determine whether tk was installed:
> >
> > >perl -e 'use tk'
> >
> > Well, I did this and got the following message:
> >
> > Can't locate Tk.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at -e line 1.
> > BEGIN failed--compilation aborted at -e line 1.
> >
> > This error was almost identical to the one that O'Reilly suggested
> > I would get if tk wasn't installed, but according to rpm -e tk,
> > it is!
> >
> > rpm -q returned the following:
> >
> > perl-5.00503-2
> > tk-8.0.4-29
> >
> > I tried rpm -l to determine the components in the tk package to
> > see if the elusive tk.pm was in there, but alas, I found nothing
> > like it.
> >
> > Also, locate tk.pm found no reference.
> >
> > I have been told by another guru that under "Damien?" perl-tk is
> > a separate set of bindings (~5Mb) and that I probably needed the
> > redhat version. Might anyone know anything about this? Or
> > could you point me to someone who might have some experience with
> > this issue maybe? I could use any help I can get.
> >
> > Thanks,
> >
> > Shirley Rieven
> >
>
> --
> John Abreau / Executive Director, Boston Linux & Unix
> Email: jabr at blu.org / URL: http://www.blu.org
> ICQ#28611923 / AIM abreauj
> -----------------------------------------------------------------------
> "Working with NT is like trying to tune a watch wearing oven mitts.
> You can't get your fingers inside like you can with UNIX.
> -----------------------------------------------------------------------
>
> -
> Subcription/unsubscription/info requests: send e-mail with
> "subscribe", "unsubscribe", or "info" on the first line of the
> message body to discuss-request at blu.org (Subject line is ignored).
>
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list