Here is the answer, as was posted on macosx@perl.org, reprinted with permission by our new brother bjturner who just joined the monastery today:


I'm not using the latest versions, but I've successfully built apache 1.3.14 with mod_perl 1.25 statically linked.

Also, I'm still using the version of perl that came with MacOS X, 5.6.0. Here's how I built that configuration:

cd mod_perl-1.25 perl Makefile.PL APACHE_SRC=../apache_1.3.14/src DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 PERL_TRACE=1 make make test # this fails since apache httpd isn't running make install

then:

# any use of --enable-shared implies --enable-module=so # note that --enable-rule=SHARED_CORE might be needed too, # but we aren't going to be having that many dynamic apache modules ./configure --prefix=/usr/local/installs/apache-1.3.14 --enable-module=rewrite --enable-shared=rewrite --activate-module=src/modules/perl/libperl.a make make test # this fails because it doesn't understand it make install

Note: you may want to change the --prefix directory or omit it, since /usr/local/installs probably isn't where you want to put apache.

This is a process I use on other (non MacOS X) machines as well, but it worked just fine on my OS X machine. I probably originally compiled it under 10.0.1 or 10.0.2, but I'd be surprised if anything in 10.0.4 broke the process.



Wait! This isn't a Parachute, this is a Backpack!

In reply to How Do I install mod_perl under Mac OS/X? by gregor42

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.