I strongly recommend that you let mod_perl do the apache build for you. Just make
sure it can find the src directory under apache.

Here's a script that I use. Hasn't failed me yet, although YMMV as I'm doing this on
Solaris and Linux, not HP-UX. Don't see why it would be significantly different,
though. Some notes are included....

** Use mod_perl to perform the apache build. To do this, create a script that passes
various options to the build process. The following options we use and their meaning
are: 
DO_HTTPD=1 – tells mod_perl to do the apache build for you, skipping the interactive
interface.
USE_APACI=1 – tells mod_perl to use the Apache AutoConf Interface.
APACHE_PREFIX= /usr/local/apache  – installation path for apache.  
APACHE_SRC= /path/to/apache_x.xx.src – tells mod_perl where to find the apache
source.
EVERYTHING=1 – turns on all of mod_perl’s features.
APACI_ARGS= -- option=value, --option=value, etc.  –  passes additional arguments to
apache’s configure script. We use it to enable several modules at the time of the
build.

Create the script:

perl Makefile.PL \r
APACHE_PREFIX=/usr/local/apache \r
APACHE_SRC=../apache_1.3.14/src \r
DO_HTTPD=1 \r
USE_APACI=1 \r
EVERYTHING=1 \r
APACI_ARGS='--enable-module=status --enable-module=speling --enable-module=rewrite
--enable-module=auth_dbm' \r
$1

Name it build_apache.sh and move into mod_perl directory. Now run the usual:

sh ./build_apache.sh
make
make test


Hope this is of some use to you and everyone else out there who has to do mod_perl
installs. Btw, there is an EXCELLENT mod_perl book "Writing Apache Modules in Perl
and C" by Lincoln Stein and Doug MacEachern (the writer of mod_perl). Most of my
notes from the above were taken directly from the book.

~Matt C.
--- [EMAIL PROTECTED] wrote:
> Hello,
> 
> I will install apache_1.3.20.tar.gz and mod_perl-1.25.tar.gz on the HP-UX
> OS.
> I have installed all perl modules e.g
> 
> libwww-perl-5.48.tar.gz
> URI
> MIME-Base64
> HTML-Parser
> libnet
> Digest::MD5
> HTML::Tagset 
> 
> Finally I am doing following:
> 
> $gzip -d apache_x.xx.tar.gz
> $tar xfv apache_x.xx.tar
> $gzip -d mod_perl-x.xx.tar.gz
> $tar xfv mod_perl-x.xx.tar
> 
> $cd mod_perl-x.xx
> $perl Makefile.PL EVERYTHING=1
> $make
> $make test
> $make install 
> 
> $cd apache_x.xx
> $CC=cc CFLAGS=-Ae ./configure --prefix=/usr/local/apache
> $make
> $make install
> 
> The "make test" doesn' t execute correct. I get the message
> 
>         cp t/conf/mod_perl_srm.conf t/conf/srm.conf
>         /usr/local/software/apache_1.3.20/src/httpd -f
> `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
> httpd listening on port 8529
> will write error_log to: t/logs/error_log
> letting apache warm up...Syntax error on line 3 of
> /usr/local/software/mod_perl-1.25/t/conf/httpd.conf:
> Invalid command '=pod', perhaps mis-spelled or defined by a module not
> included in the server configuration
> done
>         /usr/bin/perl t/TEST 0
> still waiting for server to warm up...............not ok
> server failed to start! (please examine t/logs/error_log) at t/TEST line 95.
> *** Error exit code 9
> 
> Stop.
> 
> Thanks a lot for you help
> 
> Best Regards
> 
> Hasan
> 
> -- 
> Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
> http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
> 
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to