Re: Can't locate loadable object for module
- From: Sherm Pendley <sherm@xxxxxxxxxxx>
- Date: Wed, 22 Jun 2005 14:56:25 -0400
"Stefan" <stefan@xxxxxxxxxx> writes:
> 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--
.
- References:
- Can't locate loadable object for module
- From: Stefan
- Can't locate loadable object for module
- Prev by Date: Re: pure-perl access to mySQL
- Next by Date: Re: directions to good perl module tutorial
- Previous by thread: Can't locate loadable object for module
- Next by thread: Does Win32::Perms $PermsObj->Remove( $User ) Work?
- Index(es):