You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rick Roberts <te...@ait-web.com> on 2003/05/24 17:38:44 UTC

cant build jkjni.so

I'm getting an error when I try to build the connectors.
mod_jk2.so build ok... i think, but not jkjni.so

I'm using jakarta-tomcat-connectors-jk2-2.0.2-src
I'm on Redhat 9 and using Apache2 (httpd-2.0.45) and Tomcat4 
(tomcat4-4.1.24-full.2jpp)

Apache is build from source, Tomcat4 is the RPM package.


This is the ./configure command I use:

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
       --with-tomcat41=/var/tomcat4 \
       --with-java-home=/usr/java/jdk1.4 \
       --with-jni \
       --with-pcre


This is the error that I get:

building connector for "apache-2.0"
checking for tomcat33 location... not provided
checking for tomcat40 location... not provided
checking for tomcat41 location... /var/tomcat4
checking for JDK location (please wait)... /usr/java/jdk1.4
checking Java platform... checking Java platform...
checking os_type directory...  linux
configure: error: Apache 1.3 need apr to use jni


What do I need to do to get apr?
Why does error reference Apache 1.3 when it knows that I am building 
connector for "apache-2.0" ??

Thanks,

-- 
*******************************************
* Rick Roberts                            *
* Advanced Information Technologies, Inc. *
*******************************************


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


Re: cant build jkjni.so

Posted by Rick Roberts <te...@ait-web.com>.
Pascal,

Thanks for the reply.

This is what I did:

ln -s /usr/local/apache2/lib/libapr-0.so.0.9.3 /usr/lib/libapr.so.0

Still get the same error.

-- 
*******************************************
* Rick Roberts                            *
* Advanced Information Technologies, Inc. *
*******************************************


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


Re: cant build jkjni.so

Posted by Chong Yu Meng <ch...@cymulacrum.net>.
Hi Rick !

See if you can find the file libapr-0.so.0.9.3 inside /usr/lib/. This is 
the file it wants (apr = Apache Portable Runtime). Red Hat names it 
differently, and you may want to create a symbolic link to 
/usr/lib/libapr.so.0

I'm using RH8 + Apache 2 + mod_jk2 (rpm)

Regards,
pascal chong



Rick Roberts wrote:

> I'm getting an error when I try to build the connectors.
> mod_jk2.so build ok... i think, but not jkjni.so
>
> I'm using jakarta-tomcat-connectors-jk2-2.0.2-src
> I'm on Redhat 9 and using Apache2 (httpd-2.0.45) and Tomcat4 
> (tomcat4-4.1.24-full.2jpp)
>
> Apache is build from source, Tomcat4 is the RPM package.
>
>
> This is the ./configure command I use:
>
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs \
>       --with-tomcat41=/var/tomcat4 \
>       --with-java-home=/usr/java/jdk1.4 \
>       --with-jni \
>       --with-pcre
>
>
> This is the error that I get:
>
> building connector for "apache-2.0"
> checking for tomcat33 location... not provided
> checking for tomcat40 location... not provided
> checking for tomcat41 location... /var/tomcat4
> checking for JDK location (please wait)... /usr/java/jdk1.4
> checking Java platform... checking Java platform...
> checking os_type directory...  linux
> configure: error: Apache 1.3 need apr to use jni
>
>
> What do I need to do to get apr?
> Why does error reference Apache 1.3 when it knows that I am building 
> connector for "apache-2.0" ??
>
> Thanks,
>



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


Re: cant build jkjni.so

Posted by Rick Roberts <te...@ait-web.com>.
Still can't get it to build.
Is there someplace I can get the binary?

Thanks


Rick Roberts wrote:
> I'm getting an error when I try to build the connectors.
> mod_jk2.so build ok... i think, but not jkjni.so
> 
> I'm using jakarta-tomcat-connectors-jk2-2.0.2-src
> I'm on Redhat 9 and using Apache2 (httpd-2.0.45) and Tomcat4 
> (tomcat4-4.1.24-full.2jpp)
> 
> Apache is build from source, Tomcat4 is the RPM package.
> 
> 
> This is the ./configure command I use:
> 
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs \
>       --with-tomcat41=/var/tomcat4 \
>       --with-java-home=/usr/java/jdk1.4 \
>       --with-jni \
>       --with-pcre
> 
> 
> This is the error that I get:
> 
> building connector for "apache-2.0"
> checking for tomcat33 location... not provided
> checking for tomcat40 location... not provided
> checking for tomcat41 location... /var/tomcat4
> checking for JDK location (please wait)... /usr/java/jdk1.4
> checking Java platform... checking Java platform...
> checking os_type directory...  linux
> configure: error: Apache 1.3 need apr to use jni
> 
> 
> What do I need to do to get apr?
> Why does error reference Apache 1.3 when it knows that I am building 
> connector for "apache-2.0" ??
> 
> Thanks,
> 


-- 
*******************************************
* Rick Roberts                            *
* Advanced Information Technologies, Inc. *
*******************************************


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


Re: cant build jkjni.so

Posted by Rick Roberts <te...@ait-web.com>.
Mark,

Thanks for the reply.
Here is the contents of "/usr/local/apache2/lib"

[root@abraxas lib]# pwd
/usr/local/apache2/lib
[root@abraxas lib]# ls -1
apr.exp
aprutil.exp
libapr-0.a
libapr-0.la
libapr-0.so
libapr-0.so.0
libapr-0.so.0.9.3
libaprutil-0.a
libaprutil-0.la
libaprutil-0.so
libaprutil-0.so.0
libaprutil-0.so.0.9.3


And this is where I ran the ./configure command:

[root@abraxas native2]# pwd
/disk2/downloads/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
[root@abraxas native2]# ls -1
aclocal.m4
buildconf.sh
build.xml
CHANGES.html
CHANGES.txt
common
config.log
configure
configure.in
include
jni
libtool
Makefile.in
myconfig
README.txt
scripts
server
STATUS.txt


-- 
*******************************************
* Rick Roberts                            *
* Advanced Information Technologies, Inc. *
*******************************************


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


Re: cant build jkjni.so

Posted by Mark Eggers <it...@yahoo.com>.
Rick,

I just reran this on my system (httpd 2.0.45 from
source, tomcat from binary, j2sdk 1.4.2-beta, Redhat
9) and had no reported errors with the build.

Check in the following directory for the apr
libraries:

/usr/local/apache2/lib

You should see something like the following:

apr.exp
libapr-0.la
libapr-0.so.0.9.3
libaprutil-0.so
aprutil.exp
libapr-0.so
libaprutil-0.a
libaprutil-0.so.0
libapr-0.a
libapr-0.so.0
libaprutil-0.la
libaprutil-0.so.0.9.3

If you don't, then something went wrong with the
apache build.  If you do, then make sure you're in the
following directory when you run configure.

jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

HTH

/mde/
just my two cents . . . .

>--- Rick Roberts <te...@ait-web.com> wrote:
> I'm getting an error when I try to build the
> connectors.
> mod_jk2.so build ok... i think, but not jkjni.so
> 
> I'm using jakarta-tomcat-connectors-jk2-2.0.2-src
> I'm on Redhat 9 and using Apache2 (httpd-2.0.45) and
> Tomcat4 
> (tomcat4-4.1.24-full.2jpp)
> 
> Apache is build from source, Tomcat4 is the RPM
> package.
> 
> 
> This is the ./configure command I use:
> 
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> \
>        --with-tomcat41=/var/tomcat4 \
>        --with-java-home=/usr/java/jdk1.4 \
>        --with-jni \
>        --with-pcre
> 
> 
> This is the error that I get:
> 
> building connector for "apache-2.0"
> checking for tomcat33 location... not provided
> checking for tomcat40 location... not provided
> checking for tomcat41 location... /var/tomcat4
> checking for JDK location (please wait)...
> /usr/java/jdk1.4
> checking Java platform... checking Java platform...
> checking os_type directory...  linux
> configure: error: Apache 1.3 need apr to use jni
> 
> 
> What do I need to do to get apr?
> Why does error reference Apache 1.3 when it knows
> that I am building 
> connector for "apache-2.0" ??
> 
> Thanks,
> 
> -- 
> *******************************************
> * Rick Roberts                            *
> * Advanced Information Technologies, Inc. *
> *******************************************
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
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