I finally compiled mod_perl. Stuck with my MacBookPro there were some extra problems to tackle.
This here, for instance:
By Jason A. Crome on April 3, 2012 5:20 PM
Since updating to the latest XCode on OS X Lion, we’ve been unable to build or use mod_perl 2 on our development machines. If we ignore the test failures and make install anyhow, we get this error message when trying to start Apache:Cannot load /opt/local/apache2/modules/mod_perl.so into server:dlopen(/opt/local/apache2/modules/mod_perl.so, 10): Symbol not found:_modperl_handler_anon_add
One of our developers discovered this morning that llvm/clang on OS X defaults to C99, but mod_perl expects the 89 “standard”. As a result of this thread, we compiled mod_perl in the following manner:
<pre”>$ perl Makefile.PL MP_APXS=/path/to/apache/bin/apxs MP_CCOPTS=-std=gnu89 $ make $ make test $ make install</pre>
And voila, we have a working mod_perl 2 on Lion.
Finally I tried the two mod_perl invoking strategies in Get your feet wet with mod_perl which worked.