At 8:09 PM -0400 7/2/2001, John Siracusa wrote:
>My requirements are simple: start form zero on the latest OS X (10.0.4 right
>now), download the latest stable versions of perl (5.6.1), apache (1.3.20),
>and mod_perl (1.25), and compile and statically link a mod_perl httpd
>binary.
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.
Ben
--
Benjamin John Turner | [EMAIL PROTECTED]
http://www.usfca.edu/turner/ | [EMAIL PROTECTED]
"The happiest of people don't necessarily have the best of
everything; they just make the most of everything that comes along
their way."