I am trying to install mod_perl on my Mac OS 10.3. But things aren't going
so well.

It all began when I downloaded the source code for mod_perl (1.3) and apache
(1.3.37). I began the process of building mod_perl [as per instructions
below, 1]. Things appeared to work fine until I ran 'make test'. Make
reported the following error:

server failed to start! (please examine t/logs/error_log) at t/TEST line 95.
make: *** [run_tests] Error 22

Seeing this, I went to the error_log. It showed this error:

[Tue Jul  3 23:17:49 2007] [crit] (48)Address already in use: make_sock:
could not bind to port 8529

Based on this, my guess was that the httpd was having trouble starting up
and being put in a state that could serve html docs. So I began to tinker
around to try to find out why this might be. To see how httpd (1.3.37)
faired at being manually started, I ran the following command:

root# ./httpd -f /etc/httpd/httpd.conf
Syntax error on line 207 of /etc/httpd/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not
included in the server configuration

Now the thing about this, is that its uses the configure file in /etc/httpd/
and not the configure file that came with the tarball (as I said, I was just
tinkering about). Now, the thing about this error message is that it
indicates that httpd couldn't read the configuration file, in particular the
LoadModule directive.  I then looked at the modules that were compiled into
this httpd.

root# ./httpd -l

It reported a list of modules, but not mod_so.c - which is apparently the
module that reads the LoadModule directive.  So my question - is mod_so
really needed or has it no longer used in recent versions of httpd? Is there
a way to build mod_perl so that the httpd will include mod_so?

Most importantly though - would this explain why 'make test' failed when I
was installing mod_perl?




references
1.
http://perl.apache.org/docs/1.0/guide/getwet.html#Installing_mod_perl_in_Thr
ee_Steps

Reply via email to