On 08/29/2011 10:55 AM, Casper Wandahl Schmidt wrote:
So I fanilly had time to check up on this topic :)
Lets start with the apache2ctl -V command:
Server version: Apache/2.2.8 (Ubuntu)
I suppose the Server MPM: Prefork (you have Worker) might be the reason why I
couldn't get the mod_jk working earlier because apache is not set up for using
a worker as I was trying to?
Nope.
Next the other apache info:
ii apache2 2.2.8-1ubuntu0.19
ii apache2-mpm-prefork 2.2.8-1ubuntu0.19
ii apache2-src 2.2.8-1ubuntu0.19
ii apache2-threaded-dev 2.2.8-1ubuntu0.19
ii apache2-utils 2.2.8-1ubuntu0.19
ii apache2.2-common 2.2.8-1ubuntu0.19
ii libapache2-mod-php5 5.2.4-2ubuntu5.17
Finally the beginning of the error-log I made when running make:
You don't need source packages.
All you need are -dev packages.
Then configure --with-apxs=/path/to/the/apxs(2)
In file included from mod_jk.c:29:
/usr/src/apache2/include/ap_config.h:25:17: error: apr.h: No such file or
directory
In file included from /usr/src/apache2/include/ap_config.h:26,
This happens since you forced the 'src' directory.
Sources like name suggests contain sources, apr.h and apu.h are generated
when you build the apr/apr-util (can be part of httpd build process)
but you don't need to build the httpd. Your dist already have it.
$ svn checkout https://svn.apache.org/repos/asf/tomcat/jk/tags/JK_1_2_32
$ cd JK_1_2_32/native
$ ./buildconf.sh (you don't need to do this if you didn't use svn)
$ which apxs2
/usr/bin/apxs2
$ ./configure --with-apxs=/usr/bin/apxs2
Note: Some distros don't have 2 sufix. It's just /xxx/yyy/apxs
However seems Ubuntu has /usr/bin/apxs2
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org