Rainer Jung wrote:
If I remember that correctly:
- if you include it in LD_LIBRARY_PATH, the JVM will add it to
java.library.path automatically
- if you only add it to java.library.path, it will not be enough for
the runtime linker to find the tcnative dependencies apr and openssl
Anyone: co
If I remember that correctly:
- if you include it in LD_LIBRARY_PATH, the JVM will add it to
java.library.path automatically
- if you only add it to java.library.path, it will not be enough for the
runtime linker to find the tcnative dependencies apr and openssl
Anyone: correct me if I'm wron
another way could be passing "-Djava.library.path=/usr/local/apr/lib" to
tomcat using CATALINA_OPTS for example.
@all: any drawbacks doing it this way?
kind regards,
Markus
Ole Ersoy wrote:
> Ooooh - OK - That makes a lot of sense :-) Sweet - It looks like it's
> humming real well now, excep
Ooooh - OK - That makes a lot of sense :-) Sweet - It looks like it's humming
real well now, except for a few SSL complaints, but I should be able to bang
those out.
Thanks a gazillion Filip, Rainer, Stephen, Lakshmi, and Hassan. You gracious
help enabled me to keep my last hair :-)
- Ole
ok, in your catalina.sh script you will need to do
export LD_LIBRARY_PATH=/usr/local/apr/lib:$LD_LIBRARY_PATH
the file it finds is the correct one.
the CLASSPATH variable only applies to java libraries, this is a native
C library.
Filip
Ole Ersoy wrote:
Hi Rainer and Filip,
Could tcnativ
/usr/local/apr/lib should be in your LD_LIBRARY_PATH.
--Lakshmi
-Original Message-
From: Ole Ersoy [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 16, 2007 2:47 PM
To: Tomcat Users List
Subject: Re: Installing APR on Fedora
Hi Rainer and Filip,
Could tcnative.so be called something
Hi Rainer and Filip,
Could tcnative.so be called something else? I ran this:
find / -name tcnative*.so
and it came up blank. I tried
find / -name *tc*.so
And it finds:
/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native/.libs/libtcnative-1.so
/usr/local/apr/lib/libtcn
Rainer Jung wrote:
Where do you put tcnative.so?
more specifically, is LD_LIBRARY_PATH pointing to the directory of the
.so file?
Filip
And: if you do ldd PATH_TO_TCNATIVE/tcnative.so: are there any
dependencies shown, which do not lie in /lib or /usr/lib, or which ldd
can not resolve? If
Where do you put tcnative.so?
And: if you do ldd PATH_TO_TCNATIVE/tcnative.so: are there any
dependencies shown, which do not lie in /lib or /usr/lib, or which ldd
can not resolve? If yes: which libraries, and which path resp. which
libraries without path? Maybe just post the result of the ldd
Hi Rainer,
Thanks again for that great fix. When I fired up Tomcat, I still get this
message:
Aug 16, 2007 9:53:05 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.
Hi Jung,
That did the trick!
I downloaded and installed:
http://www.axint.net/apache/apr/binaries/rpm/i386/apr-devel-1.2.8-1.i386.rpm
Then I ran this:
./configure --with-apr=/usr/bin/apr-1-config && make && make install
That did the trick :-)
Thanks Jung, Hassan, and Stephen,
- Ole
Rainer
Hi Ole,
when you tried against your installed APR most likely the dev rpm, which
includes the necessary header files for compiltions where not installed.
When you tried against a BUILD directory, most likely the APR library
need for linking was not there.
Whichever way you choose, you need
Hi Hassan,
I did the following:
rm -dfr tomcat-native-1.1.10-src/
tar xvfz tomcat-native.tar.gz
cd tomcat-native-1.1.10-src/jni/native
./configure --prefix=/usr/local/apr --with-apr=/home/ole/rpmbuild/BUILD/apr-1.2.8/ &&
make && make install
And I still get:
le/rpmbuild/BUILD/apr-1.2.8/liba
On 8/15/07, Ole Ersoy <[EMAIL PROTECTED]> wrote:
> I have a lot more progress now! I get the following (The only important part
> is the bottom i think):
>
> [EMAIL PROTECTED] native]# ./configure
> --with-apr=/home/ole/rpmbuild/BUILD/apr-1.2.8/
...
> libtool: install: error: relink `libtcnativ
Hi Hassan and Stephen,
Thanks for all the tips :-)
I have a lot more progress now! I get the following (The only important part
is the bottom i think):
[EMAIL PROTECTED] native]# ./configure --with-apr=/home/ole/rpmbuild/BUILD/apr-1.2.8/
&& make && make install
checking build system type...
On 8/15/07, Ole Ersoy <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] native]# ./configure --with-apr=/usr/lib
> checking for APR... configure: error: the --with-apr parameter is incorrect.
> It must specify an install prefix, a build directory, or an apr-config file.
>
> I think I liked it bette
Hi Ole,
I may be wrong but I think the command, based on what you have
listed below, should have been:
./configure --with-apr=/usr/lib/ && make && make install
The other problem that I think you have is that given you are
compiling, I think it is looking for th
Hi Hassan,
I tried that as well:
[EMAIL PROTECTED] native]# ./configure --with-apr=/usr/lib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
On 8/15/07, Ole Ersoy <[EMAIL PROTECTED]> wrote:
> Then I try to compile like this:
>
> [EMAIL PROTECTED] native]# ./configure && make && make install
> --with-apr=/usr/lib/
? Shouldn't you run ./configure --with-apr=/usr/lib && make...
Off the top of my head... :-)
--
Hassan Schroeder --
19 matches
Mail list logo