Hi,

I recently installed mod_perl 2.0.1 as a DSO to Apache 2.0.53 (on OS X 10.3.9). 
The simple example from the docs works:

Alias /perl/ /home/httpd/httpd-2.0/perl/
  <Location /perl/>
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
</Location>

I can run a simple script (printing out headers and a single line).

But if I change the setup to something like (based on the Perl Cookbook 2nd 
edition recipe):

Alias /perl/ /home/httpd/httpd-2.0/perl/

PerlModule Apache::Registry
PerlModule CGI

<Location /perl/>
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlOptions +ParseHeaders
    Options +ExecCGI
</Location>

I get error messages like

Can't locate loadable object for module Apache::Constants in @INC
Can't load Perl module Apache::Registry for server 127.0.0.1:0, exiting...

All Apache:: modules seem to be in 
/System/Library/Perl/5.8.1/darwin-thread-multi-2level - so what am I doing 
wrong?

I already read the FAQ which gives an explanation referring to the number of 
files to be opened by a single process - which does not seem to plausible to 
me, because with ModPerl::Registry, the script runs just fine.

Another - related - question: Is ModPerl::Registry the successor to 
Apache::Registry? The manpages can be interpreted like that.

Even though ModPerl::Registry is not in the directory of the other Perl 
modules, it seems to be the only module which is found by mod_perl.

Before I ran "make install", "make test" did not find the startup.pl used for 
testing - or the TestApache:: modules, for that matter.

This is quite confusing - can anyone clear things up a bit?

Thanks,

Jan
-- 
Alcohol and calculus don't mix - PLEASE don't drink and derive.

Reply via email to