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: problem compiling modJK2, library not found
Date Fri, 25 Apr 2003 06:47:40 GMT
William,

It looks like there are a couple of things going on.

You said you would like to try mod_jk2, but the source
you have referenced is for mod_jk.

Here's the stuff I wrote up earlier.  It's based on
Redhat Linux 9.

1. Download
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from
  
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/

2. Uncompress it and extract the tar file.

3. cd to
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

4. chmod u+x configure

5. Run configure with:

./configure
  --with-apxs2=<apache-root-directory>/bin/apxs \
  --with-tomcat41=<tomcat-root-directory> \
  --with-java-home=<java-root-directory> \
  --with-jni \
  --with-pcre

For example:

./configure --with-apxs2=/home/apache/bin/apxs \
  --with-tomcat41=/home/tomcat \
  --with-java-home=/usr/java \
  --with-jni \
  --with-pcre

6. Run make

7. The two .so files (mod_jk2.so and jkjni.so) will be
in:

jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2

8. Copy those to files to
<apache-root-directory>/modules with the proper
permissions.

9. Configure and restart

Second of all, it looks like you're using the Redhat
RPM for Apache 2.0.40.  Redhat places stuff all over
the map, and since it wasn't compiled that way apxs
has no clue as to where to look.

You can try to get around it by saying:

--with-apr-lib=<directory>
--with-apr-include=<directory>

Do a ./configure --help for the exact syntax since I
am writing this from my Windows box and can't check
it.

I recommend uninstalling both the Redhat Apache RPM
and the Apache config RPM.  Then download
httpd-2.0.45.tar.gz, uncompress, and untar it.

Change to the directory and run configure with:

--enable-modules=all --enable-shared=most
--enable-module-ssl --enable-mod-shared=ssl

Again, check the exact syntax with ./configure --help

Compile, install, and then you can build mod_jk2
without having to specify where the apr libraries are.

HTH

/mde/
just my two cents . . .

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
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