Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Help! Perl Tk won't load!!! desperate (Tk::Event not found in @INC)

by jpasquini (Initiate)
on Apr 19, 2006 at 02:47 UTC ( #544245=perlquestion: print w/replies, xml ) Need Help??

jpasquini has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I have started a new job and have been trying to install Perl TK for a WEEK. I already have Perl. I need to learn Perl TK to keep employed. Basically I have Red Hat 8 (Don't even start me on Fedora, it won't work) with Perl, and have FINALLY been able to get the TK module files copied to the Linux system via portable media. Yet after installing, I now get this message when I try to run widget: "Can't locate loadable object for module Tk: Event in INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi.............................................. Compilation failed in require at /usr/lib/perl5/5.8.0/Tk.pm line 13 ............................................................... Begin failed...................... Undefined subroutine.................." Does anyone know why this message occurs? I'm at my wits end....thanks for any help. jpasquini

2006-04-19 Retitled by planetscape, as per Monastery guidelines
Original title: 'Help! Perl T/K won't load!!! desparate'

  • Comment on Help! Perl Tk won't load!!! desperate (Tk::Event not found in @INC)

Replies are listed 'Best First'.
Re: Help! Perl Tk won't load!!! desperate (Tk::Event not found in @INC)
by PodMaster (Abbot) on Apr 19, 2006 at 03:21 UTC
Re: Help! Perl Tk won't load!!! desperate (Tk::Event not found in @INC)
by spiritway (Vicar) on Apr 19, 2006 at 04:26 UTC

    Hello. I'm sorry to hear about your plight. You say you *copied* Tk over to Red Hat; where did you put it? This is a vital question, because if you put it in the wrong place, you won't be able to use it.

    Is there some reason you didn't just install the modules from CPAN? If you already have Perl installed, you should be able to use the cpan module. You can type 'perl -MCPAN -e shell' to start this module. This will put you into the cpan shell. You can type a '?' or 'h' for help, and find out how to install your Tk modules this way. Chances are, you'll need to install several modules for Tk, depending on what sorts of widgets you need.

    You may have a steep learning curve to follow, unless you've already done some work with GUI's. Best of luck.

Re: Help! Perl Tk won't load!!! desperate (Tk::Event not found in @INC)
by planetscape (Chancellor) on Apr 19, 2006 at 07:40 UTC
Re: Help! Perl Tk won't load!!! desperate (Tk::Event not found in @INC)
by bart (Canon) on Apr 19, 2006 at 07:00 UTC
    While you're trying to get Tk installed properly, you could muddle along using one of the Windows perls, like ActivePerl (from Activestate). It comes with Tk, standard. All you need is a Windows PC, which probably is easy to get your hands on.

    p.s. Have you taken a look at the install instructions? One prerequisite is that you have X11 installed. Perhaps your problem lies there.

Re: Help! Perl Tk won't load!!! desperate (Tk::Event not found in @INC)
by zentara (Archbishop) on Apr 19, 2006 at 11:31 UTC
    I think if you copied the files from one machine to another, and get that error, it means that the underlying c libraries are different on the machines, and there is an incompatible situation. You cannot just copy files compiled on 1 machine, with dynamic library linking, and expect them to work on another machine.

    Compile and install Tk yourself, from the source tarball available at cpan. It is one of the smoothest and easiest source tarballs to build.


    I'm not really a human, but I play one on earth. flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://544245]
Approved by Errto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2020-02-20 04:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (86 votes). Check out past polls.

    Notices?