1

按照此链接的说明 包括此 apt-get install libapr1 libaprutil1

运行./configure --prefix=/usr 时出现错误:

configure: error: APR could not be located. Please use the --with-apr option.

请给点建议。

谢谢

4

2 回答 2

0

我为 Ubuntu Server 12.0.4 创建了一个脚本:

#!/bin/bash

export APR_PATH=/usr/bin/apr-1-config
export JAVA_HOME=/opt/java
export TOMCAT_HOME=/opt/tomcat
export INSTALL_PREFIX=/usr

apt-get 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
于 2013-11-12T15:37:36.023 回答
0

还需要运行以下命令:

apt-get install libapr1-dev libaprutil1-dev
于 2012-07-28T19:19:24.453 回答