-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/21/2014 8:10 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
>> Subject: Re: Tomcat 8.0.9 native library not found
> 
>> I'm not ld master, but I think you might need to reboot in order
>> for changes to ld.conf and friends to change anything.
> 
> Just run the ldconfig utility (as root) to rebuild the cache.
> Normally without options, but -v might provide some pertinent
> information.
> 
> - Chuck
> 

Chuck,

I probably should have run it with the -v option, but catalina.out
didn't list all of the paths specified in the files in /etc/ld.so.conf.d.

Neil,

I didn't notice --with-ssl=/usr in your configuration. Here's the gory
details of what I just did:

My quick and dirty CentOS 7 system:

3.10.0-123.6.3.el7.x86_64#1
SMP Wed Aug 6 21:12:36 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

apr-devel-1.4.8-3.el7.x86_64
apr-1.4.8-3.el7.x86_64
apr-util-1.5.2-6.el7.x86_64
apr-util-devel-1.5.2-6.el7.x86_64
openssl-1.0.1e-34.el7_0.4.x86_64
openssl-devel-1.0.1e-34.el7_0.4.x86_64
openssl-libs-1.0.1e-34.el7_0.4.x86_64
openssl098e-0.9.8e-29.el7.centos.2.x86_64

Java / JRE Oracle 1.7.0_67 64 bit
Ant 1.8.1

Tomcat 8 from SVN Revision: 1619129

Steps to install Tomcat native:

1. ant (to build Tomcat)
2. cd output/build/bin
3. tar xvfz tomcat-native.tar.gz
4.  cd tomcat-native-1.1.31-src/jni/native/
5. ./configure --with-apr=/usr --with-ssl=/usr
6. make
7. make install (as root)
8. Create apr.conf in /etc/ld.so.conf.d with the following content
   /usr/local/apr/lib
9. ldconfig -v (partial output below)

libtcnative-1.so.0 -> libtcnative-1.so.0.1.31
libssl.so.6 -> libssl.so.0.9.8e
libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.9
libssl3.so -> libssl3.so
libssl.so.10 -> libssl.so.1.0.1e
libgstdataprotocol-0.10.so.0 -> libgstdataprotocol-0.10.so.0.30.0
libaprutil-1.so.0 -> libaprutil-1.so.0.5.2
libapr-1.so.0 -> libapr-1.so.0.4.8
libgnutls-xssl.so.0 -> libgnutls-xssl.so.0.0.0

This is catalina.out without setenv.sh:

21-Aug-2014 08:36:50.460 INFO [main]
org.apache.catalina.core.AprLifecycleListener.init
The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/java
/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

The following setenv.sh was created:

CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib"

This is catalina.out with the above setenv.sh:

21-Aug-2014 08:44:23.168 INFO [main]
org.apache.catalina.core.AprLifecycleListener.init
Loaded APR based Apache Tomcat Native library 1.1.31 using APR version
1.4.8.
21-Aug-2014 08:44:23.180 INFO [main]
org.apache.catalina.core.AprLifecycleListener.init
APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].

I noticed that you did not include --with-ssl=/usr in your last mail
message. Do you have the openssl development libraries installed?

. . . just my (rather long) 2 cents
/mde/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (MingW32)

iQEcBAEBAgAGBQJT9hfVAAoJEEFGbsYNeTwtzzcH/3JgjkNcMUzBLBKrJejAyjfg
xPHmq37UzJv9sjNN3I4FDjgIduwJrzSMEDEUJyMh4MFm0RuEFmgFSkYgsjmSRdsY
VvW4hQYy6Qb98jyr7FB+K9GtQ0M0cEbd2JApgyOSniB45uJkI+0b+6qUxM6VO4qV
oXG37Xp0HfRVeHmTzlFQW8yRSbGTM6uNfdNbM8nXQi6RyfI/83+QVAqx0BWJBUfQ
S7VxcG7WG+J1Mw7WTUhXAX0FCgLZ34jxHqqOkuyFWSt/8cQTeDABcO4dP8hZYOd9
2LNG4+PF9QjdqlL0YnfT2czC9SaewDxzUl0boMfnJh/pgF221fZyn+ALk01o7Ok=
=MbrH
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to