# 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
```

&#x20;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](/setting-up-the-cloudio-platform/platform-installation/installing-the-servers/installing-and-configuring-the-tomcat-server.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudio.io/setting-up-the-cloudio-platform/platform-installation/setting-up-the-worker-apache-cluster/setting-up-the-essentials-as-a-non-root-user/installing-the-tomcat-native-library.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
