我尝试在Tomcat7上安装apache [APR] [1]。
我做的是:
tar xvf apache-tomcat/bin/tomcat-native.tar.gz
./configure --with-apr=/usr/local/apr --without-ssl
make install
APR未正确安装我得到了输出:
make[1]: Nothing to be done for `local-all'.
/usr/local/apr/build-1/mkdir.sh /usr/local/apr/include/apr-1 /usr/local/apr/lib/pkgconfig \
/usr/local/apr/lib /usr/local/apr/bin
/usr/bin/install -c -m 644 tcnative.pc /usr/local/apr/lib/pkgconfig/tcnative-1.pc
list=''; for i in $list; do \
( cd $i ; make DESTDIR= install ); \
done
/bin/sh /usr/local/apr/build-1/libtool --mode=install /usr/bin/install -c -m 755 libtcnative-1.la /usr/local/apr/lib
libtool: install: /usr/bin/install -c -m 755 .libs/libtcnative-1.0.dylib /usr/local/apr/lib/libtcnative-1.0.dylib
libtool: install: (cd /usr/local/apr/lib && { ln -s -f libtcnative-1.0.dylib libtcnative-1.dylib || { rm -f libtcnative-1.dylib && ln -s libtcnative-1.0.dylib libtcnative-1.dylib; }; })
libtool: install: /usr/bin/install -c -m 755 .libs/libtcnative-1.lai /usr/local/apr/lib/libtcnative-1.la
libtool: install: /usr/bin/install -c -m 755 .libs/libtcnative-1.a /usr/local/apr/lib/libtcnative-1.a
libtool: install: chmod 644 /usr/local/apr/lib/libtcnative-1.a
libtool: install: ranlib /usr/local/apr/lib/libtcnative-1.a
ranlib: file: /usr/local/apr/lib/libtcnative-1.a(sslutils.o) has no symbols
这里有什么问题?
运行Tomcat时,我得到以下输出:
Aug 07, 2013 2:16:14 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: