按照link的说明进行操作
包含此apt-get install libapr1 libaprutil1
运行时./configure --prefix=/usr
我收到了错误:
configure: error: APR could not be located. Please use the --with-apr option.
请给我任何建议。
谢谢
答案 0 :(得分:0)
还需要运行以下内容:
apt-get install libapr1-dev libaprutil1-dev
答案 1 :(得分: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