Mark
I really appreciate your help.
I execute the steps you describe before send my question, I was using
Apache 1.3, so I updated to 2.0 and I did not have any problem. 

Anyway I have a doubt, you said that is needed add "laprutil-0" to
JK_LDFLAGS before run make, but I was able to compile the mod_jk2.so
with and without this option, what is this for?

Thanks




-----Original Message-----
From: Mark Eggers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 4:46 PM
To: Tomcat Users List
Subject: Re: Problem with cc-gcc compiling mod_jk in Solaris 9 

Mauricio,

Are you trying to compile mod_jk, or mod_jk2?

Instead of creating a symbolic link, do the following:

1. Make sure that gcc is in your path (it's usually
installed in /opt/<something> if I remember
correctly).

2. Set an environment variable:

setenv CC=gcc  (C shell)
export CC=gcc (Bash shell)

3. If you compiled apache yourself, use the same
CPPFLAGS environment variable for this compilation.

4. The configure script will attempt to find java, so
set the JAVA_HOME environment variable to point to
your desired location.

5. For mod_jk2, download the 2.0.2 source, gunzip, and
untar it.

6. Go to the jk/native2 directory and run the
following configure command:

./configure --with-apxs2=<path_to_your_apxs_file> \
            --with-tomcat41=<path_to_your_tomcat> \
            --with-jni

6i. If you have the Perl regular expresions library
installed, use the following configure command

./configure --with-apxs2=<path_to_your_apxs_file> \
            --with-tomcat41=<path_to_your_tomcat> \
            --with-jni --with-pcre

7. Fix a line in server/apache2/Makefile.  The line:

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

should read:

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

8. Run make

9. The module (mod_jk2.so) and jkjni.so should be in 

../build/jk2/apache2/

5a. For mod_jk, download the 1.25 source, gunzip it,
and untar it.

6a. Go to the jk/native directory and run the
following configure command:

./configure --with-apxs=<path_to_your_apxs_file> \
            --with-jni

7a. Run make

8a. The module (mod_jk.so) should be in apache2/

9a. The jni component (jkjni_cb.so) should be in jni/

That all being said, I've not used the mod_jk.so or
jni component much.  I use mod_jk2.so and jkjni.so on
Linnux, and mod_jk2.dll and jkjni.dll on Windows/2000.

Hope this helps you get started.

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to