How does one go about compiliing mod_perl 2 statically with Apache 2.0.48. I compiled Apache 2 and installed mod_perl 1.99_11. I am able to load mod_perl via DSO. However, I would like to have mod_perl staically compiled with Apache2. The installation docs are not that clear.

Here are the steps I'm taking:

$ cd /usr/local/src/apache2
$ cd apache-2.0.48
$ ./configure --prefix=/usr/local/apache_2.0.48 \
--enable-modules=all  -wth-ssl=/home/openssl-0.9.7c --disable->
$ make
$ make install

$ cd ../mod_perl-1.99_11
$ perl Makefile.PL MP_INST_APACHE=2 MP_AP_PREFIX=/usr/local/apache_2.0.48
$ make
$ make install

Now I want to rebuild httpd with mod_perl statically linked. I copy the mod_perl-1.99_11/src/modules/perl contents to apache_2.0.48/modules/perl directory (is this correct?).

$ cd /usr/local/src/apache2/apache-2.0.48
$ mkdir modules/perl
$ cd ../mod_perl-1.99_11/src/modules/perl
$ tar cf - .| (cd /usr/local/src/apache2/apache_2.0.48/modules/perl; tar xfBp -)
$ cd /usr/local/src/apache2/apache_2.0.48
$ ./config.nice --enable-perl=static
$ make
$ httpd -l ## Does not show mod_perl.c ??



Thanks,


-Carlos



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to