tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: Redhat9 / mod_jk2 builds from source
Date Wed, 14 Jan 2004 22:39:33 GMT
Oscar,

Not a problem :-)

I do have some additions to my original post.  The
changes get UNIX sockets working as well as IP
sockets.

Set the following environment variables:

export "LDFLAGS=-lgdbm -lldap -lexpat -ldb"
export "CPPFLAGS=-I/usr/kerberos/include
-I/usr/openssl/include"

(all on one line for the second command).  Use the
appropriate command for the shell you're in.

Tell configure about OS-specific files for Java JNI. 
For linux and the Sun JVM, the files are located in
include/linux underneath $JAVA_HOME.  The configure
command for mod_jk2 is then:

./configure --with-apxs2=/home/apache/bin/apxs \
            --with-tomcat41=/home/tomcat \
            --with-os-type=include/linux \
            --with-jni \
            --with-pcre

Finally, modify the JK_LDFLAGS line in
server/apache2/Makefile to include libaprutil.  It
will read:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix -laprutil-0

(again on one line).

Run make, and the resulting mod_jk2.so / jkjni.so will
support both IP socketes and UNIX sockets.

In-process communication will probably have to wait
until a new MPM module is out for Apache.

The missing aprutil-0 library is probably due to an
autoconf / configure issue.  The developers (according
to folks on this mailing list) have decided to use the
Apache apr interfaces, but have not finished updating
the configure scripts.  This is really apparent if you
try to build the connectors from the current CVS.

I've tried the above on Fedora Core 1 with both 4.1.29
and 5.0.16 with success.

HTH

/mde/
just my two cents . . . .


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message