Emir, The actual list of steps is at the link you mentioned earlier: http://tomcat.apache.org/native-doc/
On Fri, Mar 6, 2015 at 7:30 AM, Neven Cvetkovic <neven.cvetko...@gmail.com> wrote: > > Let us know if you need help compiling the native Tomcat connectors > (APR-based). > > There might be others that want to compile their TCNATIVE (apr-based) connectors, so here's the digested list below (for Ubuntu/Debian based systems): 1) Install required libraries for building TCNATIVE (APR dev, APR, and SSL tools) sudo apt-get zlib1g-dev build-essential libapr1 libapr1-dev libssl-dev 2) Unpack TC-native source, e.g. cd /opt/apache-tomcat-8.0.20 cd bin tar zxvf tomcat-native.tar.gz 3) Change directory to TC-native source code, e.g. cd /opt/tomcat/bin/tomcat-native-1.1.32-src/jni/native/ 4) Prepare makefile for compiling source, e.g. ./configure --with-apr=/usr/bin/apr-config --with-prefix=/opt/tomcat 5) Compile code, e.g. make 6) Install libraries, e.g. make install 7) This will add libraries to: /opt/tomcat/lib You can see the actual things installed: /opt/tomcat/lib/pkgconfig /opt/tomcat/lib/pkgconfig/tcnative-1.pc /opt/tomcat/lib/catalina-storeconfig.jar /opt/tomcat/lib/libtcnative-1.a /opt/tomcat/lib/libtcnative-1.so.0.1.32 /opt/tomcat/lib/libtcnative-1.so.0 /opt/tomcat/lib/libtcnative-1.la /opt/tomcat/lib/libtcnative-1.so 8) Now we need to let Tomcat know about these libraries and add them to the library path. Add a new file, e.g. /opt/tomcat/bin/setenv.sh file: export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CATALINA_HOME}/lib 9) Restart Tomcat,e.g. /opt/tomcat/bin/catalina.sh run 10) Observe the output, you should see something like this in the console log: INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1. INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. NFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1f 6 Jan 2014) INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"] INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"] Good luck!