Can't get Apache to build with mod_perl! Argh!

    Date: 06/11/06 (Apache)    Keywords: linux, apache

    Hello!

    I'm attempting to build Apache with mod_perl and mod_ssl by hand. mod_ssl seems to have integrated nicely with the build process. However, upon compiling the mod_perl module, make fails.

    Here is the command I used to configure mod_perl:

    perl Makefile.PL \
    EVERYTHING=1 \
    APACHE_SRC=../apache_1.3.36/src \
    USE_APACI=1 \
    PREP_HTTPD=1 \
    DO_HTTPD=1

    While in /usr/src/apache_1.3.36, here is the command I used to configure Apache:

    SSL_BASE=SYSTEM ./configure --prefix=/usr --with-layout=GNU --sysconfdir=/etc/apache --libexecdir=/usr/libexec/apache --localstatedir=/usr/var/apache --runtimedir=/var/apache/ --logfiledir=/var/log/apache --includedir=/usr/include/apache --proxycachedir=/var/www/cache --datadir=/var/www --enable-module=all --enable-module=ssl --activate-module=src/modules/perl/libperl.a --enable-module=perl --enable-shared=max --enable-suexec --suexec-caller=nobody

    The error regarding mod_perl while in the make program is as follows:

    ===> src/modules/perl
    gcc -I. -I../../include -I../../include/regex -I../../include/../ -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_SSL=208127 -DMOD_PERL -DUSE_HSREGEX -DEAPI `../apaci` -I`/usr/bin/perl -MConfig -e 'print $Config{archlibexp}'`/CORE `/usr/bin/perl '-MApache::ExtUtils=%Config' -e 'print $Config{ccflags}'` -DNO_PERL_DISPATCH -DNO_PERL_POST_READ_REQUEST -DNO_PERL_TRANS -DNO_PERL_HEADER_PARSER -DNO_PERL_ACCESS -DNO_PERL_AUTHEN -DNO_PERL_AUTHZ -DNO_PERL_TYPE -DNO_PERL_FIXUP -DNO_PERL_LOG -DNO_PERL_INIT -DNO_PERL_CLEANUP -DNO_PERL_RESTART -DNO_PERL_STACKED_HANDLERS -DNO_PERL_SECTIONS -DNO_PERL_METHOD_HANDLERS -DNO_PERL_SSI -DMOD_PERL_VERSION=\"1.29\" -c -o mod_perl_opmask.o mod_perl_opmask.c
    /bin/sh: line 1: ../apaci: No such file or directory
    In file included from ../../include/httpd.h:29,
    from apache_inc.h:120,
    from mod_perl.h:162,
    from mod_perl_opmask.c:1:
    ../../include/ap_config.h:73:16: error: os.h: No such file or directory
    make[4]: *** [mod_perl_opmask.o] Error 1
    make[3]: *** [all] Error 1
    make[2]: *** [subdirs] Error 1
    make[2]: Leaving directory `/usr/src/apache_1.3.36/src'
    make[1]: *** [build-std] Error 2
    make[1]: Leaving directory `/usr/src/apache_1.3.36'
    make: *** [build] Error 2


    I'm really at my wits end trying to figure out why it won't work. I hope someone here can help!

    Thanks!

    Source: http://community.livejournal.com/apache/33703.html

« Tomcat question || RewriteMap on Windows »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home