chsalvia
asked on
Installing mod_jk
I'm running Linux (Debian 4) and I'm trying to install mod_jk to get Tomcat working with Apache. I have apache2 and tomcat5 successfully installed and working, but I can't get the mod_jk connector to compile.
I download the latest source tarball, and run the configure script like this:
./configure --with-apxs2=/usr/local/ap ache2/bin/ apxs --with-apache=/usr/local/a pache2/
Then I type make.
The make goes well for a while, but then about half way through gets all sorts of compilation errors, which seem to be related to the apr (apache portable runtime) include files.
The errors begin with:
In file included from /usr/local/apache2//includ e/ap_confi g.h:25,
from mod_jk.c:29:
/usr/local/apr/include/apr -1/apr.h:2 73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
In file included from mod_jk.c:29:
/usr/local/apache2//includ e/ap_confi g.h:26:23: error: apr_hooks.h: No such file or directory
/usr/local/apache2//includ e/ap_confi g.h:27:32: error: apr_optional_hooks.h: No such file or directory
...And then there's a few hundred lines more of compiler errors.
Does anyone have any idea what might be happening here?
I download the latest source tarball, and run the configure script like this:
./configure --with-apxs2=/usr/local/ap
Then I type make.
The make goes well for a while, but then about half way through gets all sorts of compilation errors, which seem to be related to the apr (apache portable runtime) include files.
The errors begin with:
In file included from /usr/local/apache2//includ
from mod_jk.c:29:
/usr/local/apr/include/apr
In file included from mod_jk.c:29:
/usr/local/apache2//includ
/usr/local/apache2//includ
...And then there's a few hundred lines more of compiler errors.
Does anyone have any idea what might be happening here?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if you want to compile the module yourself you need the apache2 sources, at least the include files