似乎 tomcat-native 1.1.20 还是无法支持 OS/X (10.6.8).
提示信息:
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jul 13, 2011 11:02:30 AM org.apache.coyote.http11.Http11Protocol init
编译和安装
`./configure --with-apr=/usr/bin/apr-1-config
--with-java-home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
make clean
make
sudo cp .libs/libtcnative-1.0.1.20.dylib /usr/lib/java
sudo ln -s /usr/lib/java/libtcnative-1.0.1.20.dylib
/usr/lib/java/libtcnative-1.dylib`
大家有什么好建议吗?
构建的时候使用:
`CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386 -arch x86_64'
./configure --with-apr=/usr --with-ssl=/usr
--with-java-home=/System/Library/Frameworks/JavaVM.framework/`
需要 PowerPC 的支持:
`CFLAGS='-arch ppc -arch i386 -arch ppc64 -arch x86_64'
APXSLDFLAGS='-arch ppc -arch i386 -arch ppc64 -arch x86_64'
./configure --with-apr=/usr --with-ssl=/usr
--with-java-home=/System/Library/Frameworks/JavaVM.framework/`
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。