基于四月的Apache Tomcat本机库的不兼容版本1.1.22安装,而需要的Tomcat 1.1.24版 [英] 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本机库的不兼容版本1.1.22安装,而需要的Tomcat 1.1.24版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我四月Apache安装在Ubuntu 10.04与
I installed apache apr on ubuntu 10.04 with
sudo apt-get install libtcnative-1
当我说我的tomcat我得到了以下错误:
When I stated my tomcat I got the following error:
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
我如何要解决这个错误?
How do I have to fix that error?
推荐答案
我创建了一个脚本编译的Apache Tomcat本机库:
I created a script for compiling Apache Tomcat Native library:
#!/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
这篇关于基于四月的Apache Tomcat本机库的不兼容版本1.1.22安装,而需要的Tomcat 1.1.24版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文