Web Applications
mod_jk
A very important bit of glue code otherwise Apache will seek your tomcat hosted Java applications in vain!
Note
apxs embeds values for CC and CFLAGS (amongst others) in itself which, given we're using Sun's instance of Apache, we need to override.
The current values for CC and CFLAGS are revealed by:
.../apxs -q -S CC
Note
As we'll be installing this module in /usr/apache2 we need to do the final install as root.
cd .../jakarta-tomcat-connectors-1.2.15-src cd jk/native ./configure --with-apxs=/usr/apache2/bin/apxs make APXSCFLAGS="$(.../apxs -q CFLAGS)" CC=gcc su make install
Tomcat Connectors 1.2.23
libtool can get annoyingly confused by configure. If you see make bail out with the message:
libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag'
then libtool is confused. The problem is with one of the compiler variables, in this case CC. In particular libtool wants CC to be the exact same value as used previously, not just cc but /opt/SUNWspro/bin/cc:
cd .../tomcat-connectors-1.2.23-src cd native CC=$(/usr/apache2/bin/apxs -q CC) ./configure --with-apxs=/usr/apache2/bin/apxs make
Document Actions