Anyone???? On Tue, Dec 22, 2009 at 10:02 AM, Michele Mase' <michele.m...@gmail.com>wrote:
> I've successfully enabled the apr native on linux CentOS 32 bit following > some simple steps: > > Install apr and openssl dev required files > yum install openssl-devel apr-devel > > Install jdk, tomcat and set JAVA_HOME; accordlin to my conf JAVA_HOME is > /usr/java/latest and tomcat is in /home/tomcat/tomcat-6b > Get tomcat native (I used the 1.1.18 version) > Before compiling is useful to test that tomcat is fully working (eg. cd ~; > cd tomcat-6b/bin; sh catalina.sh run) > > Native: > untarring > tar zxvf tomcat-native-version-src.tar.gz (version=1.1.18 in my env) > compiling: > ./configure --with-apr=$(which apr-1-config) > --with-java-home=$JAVA_HOME --with-ssl=yes > --prefix=/home/tomcat/tomcat6-a > make && make install > > Now native libs are in /home/tomcat/tomcat-6b/lib > > Edit catalina.sh adding: > CATALINA_OPTS="$CATALINA_OPTS > -Djava.library.path=/home/tomcat/tomcat-6b/lib" > > Restart tomcat and verify that the message complying the missing apr is > gone ... > > If you set CATALINA_HOME env, you can optionally use > --prefix=$CATALINA_HOME > The apr will be put in $CATALINA_HOME/lib > > The same procedure on linux 64bit doesn't work > The tomcat native libraries now are put under $CATALINA_HOME/lib64 > ll lib64 > total 2448 > -rw-r--r-- 1 tomcat tomcat 1577256 Dec 18 11:11 libtcnative.a > -rwxr-xr-x 1 tomcat tomcat 865 Dec 18 11:11 libtcnative.la > lrwxrwxrwx 1 tomcat tomcat 21 Dec 18 11:11 libtcnative.so -> > libtcnative.so.0.1.18 > lrwxrwxrwx 1 tomcat tomcat 21 Dec 18 11:11 libtcnative.so.0 -> > libtcnative.so.0.1.18 > -rwxr-xr-x 1 tomcat tomcat 884518 Dec 18 11:11 libtcnative.so.0.1.18 > drwxr-xr-x 2 tomcat tomcat 4096 Dec 22 09:28 pkgconfig > > I've added in the catalina.sh the following > CATALINA_OPTS="$CATALINA_OPTS > -Djava.library.path=/home/tomcat/tomcat-6b/lib64" > > And again, after tomcat is started i find the missing apr messages > ... > Dec 22, 2009 9:59:16 AM org.apache.catalina.core.AprLifecycleListener init > INFO: The APR based Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: /home/tomcat/tomcat-6b/lib64 > ... > > Any suggestion????? > > >