我在ubuntu 10.04上安装了apache apr
sudo apt-get install libtcnative-1
当我说我的tomcat时,出现以下错误:
Aug 07, 2013 6:57:32 PM org.apache.catalina.core.AprLifecycleListener init SEVERE: An incompatible version 1.1.22 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24
我该如何解决该错误?
我创建了一个脚本来编译Apache Tomcat本机库:
#!/bin/bash export APR_PATH=/usr/bin/apr-1-config export JAVA_HOME=/opt/java export TOMCAT_HOME=/opt/tomcat export INSTALL_PREFIX=/usr wajig install libaprutil1-dev make cd /tmp rm -Rf tomcat-native-* tar -zxf $TOMCAT_HOME/bin/tomcat-native.tar.gz cd /tmp/tomcat-native-*/jni/native ./configure --with-apr=$APR_PATH --with-java-home=$JAVA_HOME --prefix=$INSTALL_PREFIX make && make install