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

Hello!

I have a simple script:

#!/usr/bin/perl -w;
use strict;
use Apache::File;
1;
__END__

It fails with this: Can't locate loadable object for module Apache::File in @INC (@INC ....) at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/mod_perl.pm line 14

Not sure what's up. FreeBSD, perl5.00503 and the letest mod_perl. Any ideas? Apache::File does exist...it just does a little magic at the start to suck in some routines. Please help...thanks.

Replies are listed 'Best First'.
Re: Argh!! Apache::File Problems
by TheoPetersen (Priest) on Apr 26, 2001 at 23:23 UTC
    That's pretty weird. mod_perl is loading dynamic libraries at that point and it's not finding once; but the only library I see referenced in Apache::File is the one for mod_perl itself.

    Did you reinstall recently? Or rearrange some directories? My guess is that this is an installation problem, and I'd try rebuilding and reinstalling mod_perl as a first step.

(ar0n) Re: Argh!! Apache::File Problems
by ar0n (Priest) on Apr 27, 2001 at 00:46 UTC
    I've had this same problem and did some searching on it for a while. Most answers I've found involved making sure you had EVERYTHING=1 when configuring. It worked for me. I guess it depends on other modules in the Apache::*

    ar0n ]