Click here to get back home

Can't locate loadable object for module

 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 Stefan 06-22-2005
Posted by Stefan on June 22, 2005, 12:37 pm
Please log in for more thread options


All,

I had this problem and wanted to post it here because I have found that
a lot of people are having this problem without many answers. This may
not be the fix-all solution, but it hould help some.

Error message:
Can't locate loadable object for module Date::Calc

I did google searches and stuff and it seems a lot of people have the
problem, but all the answers were just "Did you install it right? Did
you download the module from CPAN? etc..." None of this helped me. I
actually used Mandrake's urpmi AND I seperately tried perl -MCPAN -e
'install Data::Calc' but neither worked.

First, what was curious was that my program would run as root, but not
as apache for running in CGI mode.

So, to make a long story short, I found that a parent directory to the
..so file was mode 700 keeping the apache user from getting to it.

Step 1) Find the .so
find /usr/lib/perl5/ -name "Calc.*"
Step 2) Verify perms on parents of .so
ls -l /usr/lib/perl5/
ls -l /usr/lib/perl5/site_perl
ls -l /usr/lib/perl5/site_perl/5.8.5
ls -l /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/
ls -l /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto
Step 3) Change perms on parent
chmod 755 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/



Posted by Sherm Pendley on June 22, 2005, 3:56 pm
Please log in for more thread options



> I had this problem and wanted to post it here because I have found that
> a lot of people are having this problem without many answers. This may
> not be the fix-all solution, but it hould help some.
>
> Error message:
> Can't locate loadable object for module Date::Calc
>
> I did google searches and stuff and it seems a lot of people have the
> problem, but all the answers were just "Did you install it right? Did
> you download the module from CPAN? etc..."

That is, most often, the correct answer. At *least* nine out of every ten
times that question is asked, it's caused by a user who tried to simply
copy the .pm files into place, instead of following the standard module
installation procedure.

Obviously those answers weren't helpful to *you*, but you should understand
why those are frequently the first answer given. It's the most common source
of this error, so it's looked at first, before proceeding on to more esoteric
problems like yours.

> actually used Mandrake's urpmi AND I seperately tried perl -MCPAN -e
> 'install Data::Calc' but neither worked.
>
> First, what was curious was that my program would run as root, but not
> as apache for running in CGI mode.
>
> So, to make a long story short, I found that a parent directory to the
> .so file was mode 700 keeping the apache user from getting to it.

Well then, the problem *is* that the modules were installed incorrectly. The
files were copied incorrectly by a package manager in this case, which set the
directory permissions differently than the standard install procedure would
have set them. So the details were different, but not the core problem.

sherm--


Similar ThreadsPosted
Can't locate loadable object for module Tk::Event July 15, 2005, 9:15 am
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