cramirez wrote:
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.

Currently only the dynamic build is available. Patches that implement the static build are very welcome.


It's half way done, as we already generate mod_perl.lo.

If you want to build it as a part of httpd, build you at least need to add something like this to apache.../modules/perl/config.mp4:

dnl modules enabled in this directory by default
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])

APACHE_MODPATH_INIT(perl)
APACHE_MODULE(perl, mod_perl module, , , yes)
APACHE_MODPATH_FINISH

Though I see no reason, why we shouldn't just tell httpd to link mod_perl.lo built in a different location. I haven't tried linking static 3rd party modules to httpd-2.0 yet. What's the new syntax for telling httpd-2.0 to link some .lo file? In which case you'd just go and tell --link=../modperl-1.99_11/src/modules/perl/mod_perl.lo, no?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


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



Reply via email to