logo       

Re: [error] Can't locate loadable object on Apache start attempt: msg#00186

web.mason.user

Subject: Re: [error] Can't locate loadable object on Apache start attempt

On Sat, 23 Aug 2003, Andy Stringer wrote:

> I hope some helpful person out there has a quick fix for
> me... I was in the process of installing Mason 1.22 on a
> Windows XP machine. Got Apache and mod_perl installed
> successfully, no errors. I downloaded and installed
> Mason, and apparently all the correct modules got
> installed in C:\Perl\site\lib. As soon as I tried to put
> the following directives in httpd.conf:
>
> # Intalled Mason
> PerlModule HTML::Mason::ApacheHandler
> <Location />
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
> </Location>
>
> I get the following error messages:
>
> C:\Apache\Apache2\bin>apache -k start

> [Sat Aug 23 13:54:16 2003] [error] Can't locate loadable
> object for module
> Apache::Constants in @INC (@INC contains: C:/Perl/lib
> C:/Perl/site/lib . C:/Apache/Ap ache2/
> C:/Apache/Apache2/lib/perl) at
> C:/Perl/site/lib/mod_perl.pm line 14 Compilation failed in
> require at C:/Perl/site/lib/HTML/Mason/ApacheHandler.pm line 13.
> BEGIN failed--compilation aborted at
> C:/Perl/site/lib/HTML/Mason/ApacheHandler.pm line 13.
> Compilation failed in require at (eval 1) line 3.
>
> [Sat Aug 23 13:54:16 2003] [error] Can't load Perl module
> HTML::Mason::ApacheHandler for server SHASTA:80, exiting...

It's trying to find Apache::Constants, which is a mod_perl 1
module, but the presence of Apache2 in @INC suggests you're
running mod_perl 2, in which Apache::Constants has been
replaced by Apache::Const. See the docs at
http://perl.apache.org/ for porting things from mod_perl 1
to 2.

--
best regards,
randy kobes


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise