Click here to get back home

Can't locate loadable object for module Tk::Event

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Can't locate loadable object for module Tk::Event balu422 07-15-2005
Posted by balu422 on July 15, 2005, 9:15 am
Please log in for more thread options


Hi,

I am in the process of moving the programs from an apache box to SUN
and I was missing a lot of .pm files and I have installed it and
finally needed Tk and GD and these are installed, compiled in the same
machine and tested okay but I am still getting Can't locate loadable
object for module Tk::Event error message in the browser. Is there
anything that I should do to make it work. Please advice. Any
suggestions are appreciated.

Balu



Posted by Sisyphus on July 16, 2005, 11:21 am
Please log in for more thread options



> Hi,
>
> I am in the process of moving the programs from an apache box to SUN
> and I was missing a lot of .pm files and I have installed it and
> finally needed Tk and GD and these are installed, compiled in the same
> machine and tested okay but I am still getting Can't locate loadable
> object for module Tk::Event error message in the browser. Is there
> anything that I should do to make it work. Please advice. Any
> suggestions are appreciated.
>

Is this just a web server issue ? What happens when you run from the command
line:

perl -MTk::Event -le 'print "OK"'

If you get the same error, then one suspects that auto/Tk/Event/Event.so
(which is the loadable object referred to) is not where it should be - ie in
one of the @INC directories.

If it's there, then one begins to wonder about permissions - of both the
file itself, and the directory that houses it.

Cheers,
Rob




Posted by balu422 on July 18, 2005, 8:17 am
Please log in for more thread options


Sisyphus wrote:
> Is this just a web server issue ? What happens when you run from the command
> line:
>
> perl -MTk::Event -le 'print "OK"'
>
> If you get the same error, then one suspects that auto/Tk/Event/Event.so
> (which is the loadable object referred to) is not where it should be - ie in
> one of the @INC directories.
>
> If it's there, then one begins to wonder about permissions - of both the
> file itself, and the directory that houses it.
>
> Cheers,
> Rob

Thank you so much for the response. From the command line the cgi
script runs okay without any error.
perl -MTk::Event -le 'print "OK"'
is OK also. The permissions looks okay also but I will keep on looking.
If there is any other suggestions in the mean time, please let me know.
Thanks,

Balu



Posted by balu422 on July 18, 2005, 8:55 am
Please log in for more thread options


Sisyphus wrote:
>
> Is this just a web server issue ? What happens when you run from the command
> line:
>
> perl -MTk::Event -le 'print "OK"'
>
> If you get the same error, then one suspects that auto/Tk/Event/Event.so
> (which is the loadable object referred to) is not where it should be - ie in
> one of the @INC directories.
>
> If it's there, then one begins to wonder about permissions - of both the
> file itself, and the directory that houses it.

Yes, your suggestion worked. I didn't have the .so files in the @INC
directories. I copied the files and it worked. Thank you so much. I am
getting a different error when I click on one of the link that is:

Software error:
Undefined subroutine &main::Parse_Date called at
/opt/SUNWwbsvr/ssl/dodnic.portal/cgi-bin/aaa/aaamain.cgi line 118,
<CURRENT_DATE> line 1.

For help, please send mail to this site's webmaster, giving this error
message and the time and date of the error.

[Mon Jul 18 11:45:55 2005] aaamain.cgi: Undefined subroutine
&main::Parse_Date called at
/opt/SUNWwbsvr/ssl/dodnic.portal/cgi-bin/aaa/aaamain.cgi line 118, line
1.

Please help me, if this is familiar.
Thanks a million,

Balu



Posted by Sisyphus on July 19, 2005, 5:03 pm
Please log in for more thread options




>
> [Mon Jul 18 11:45:55 2005] aaamain.cgi: Undefined subroutine
> &main::Parse_Date called at
> /opt/SUNWwbsvr/ssl/dodnic.portal/cgi-bin/aaa/aaamain.cgi line 118, line
> 1.

Perl can't find the Parse_Date() subroutine. Where is it ? If it's a
Tk::Event subroutine, then calling it as Tk::Event::Parse_Date(), instead of
simply Parse_Date(), should fix the problem. Alternatively, you could import
it - by loading Tk::Event with:
use Tk::Event qw(Parse_Date);

Cheers,
Rob




Similar ThreadsPosted
Can't locate loadable object for module June 22, 2005, 12:37 pm
Can't locate loadable object August 4, 2005, 12:18 am
Can't find loadable object November 19, 2004, 1:05 pm
Can't locate object method "ymd" via package... August 3, 2007, 6:14 am
Pg.pm Question - Can't locate object method driver October 31, 2004, 9:17 pm
Can't locate object method "new" via package "Net::SMTP" November 2, 2004, 6:36 pm
GD::Image: Can't locate object method "newFromJpeg" April 1, 2005, 2:51 am
Tk::Browser, "Can't locate object method 'Construct'" January 16, 2008, 4:47 am
Can't locate object method "blocking" via package "IO::Handle" June 20, 2005, 8:38 am
Can't locate object method "newFromJpeg" via package "GD::Image" December 19, 2005, 3:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap