Home > Support > HOWTO List > libtcnative install

Apache Portable Runtime (APR) and Tomcat

Per http://tomcat.apache.org/tomcat-5.5-doc/apr.html Tomcat can use the Apache Portable Runtime to provide superior scalability, performance, and better integration with native server technologies.

Installing the JNI wrappers for APR used by Tomcat (libtcnative)

On CentOS5, http://www.jroller.com/agileanswers/entry/configuring_apr_for_tomcat is a popular guide for installing the Apache Tomcat Native Library.


apt-get -y install apr-devel openssl-devel

wget http://apache.seekmeup.com/tomcat/tomcat-connectors/native/1.1.16/source/tomcat-native-1.1.16-src.tar.gz

rpm -ql apr-devel

tar -zxvf tomcat-native*
cd tomcat-native*/jni/native
./configure --with-apr=/usr/bin/apr-1-config
make
make install

ln -s /usr/local/apr/lib/libtcnative-1.so.0.1.16 /usr/lib/libtcnative-1.so

service tomcat restart

less /usr/local/tomcat/logs/catalina.out