Installing the Tomcat native library

The Tomcat Native Library is a component that allows you to access the Apache Portable Runtime (APR).

  1. Navigate to http://download.nextag.com/apache/tomcat/tomcat- > http://tomcat.apache.org/download-native.cgi and download connectors/native/1.1.33/source/tomcat-native-1.1.33-src.tar.gz.

  2. Unzip the file in stage location using:

tar xvzf tomcat-native-1.1.33-src.tar.gz
cd tomcat-native-1.1.33-src/jni/native

3. Build binaries from the source.

./configure --with-apr=$HOME/APR \
--with-java-home=$JAVA_HOME \
--with-ssl=$HOME/OPENSSL \
--prefix=$CATALINA_HOME
E.g.
./configure --with-apr=/usr/bin/apr-1-config --with-java-home=/ua1001/cloudio/java/jdk1.7.0_79 --with-
ssl=/usr/include/openssl --prefix=/usr/lib64
make
make install
cd /usr/lib64
ln -s lib/libtcnative-1.so.0.1.22 libtcnative-1.so
ln -s lib/libtcnative-1.so.0.1.22 libtcnative-1.so.0

Installing Tomcat Server

Refer Installing and configuring the Tomcat Server.

Last updated