我在Windows上使用Eclipse中的Tomcat 7.启动Tomcat时,我收到以下信息消息:
在java.library.path中找不到基于APR的Apache Tomcat Native库,它可以在生产环境中实现最佳性能
这意味着什么,我如何提供APR库?
这是我第一次尝试在我的盒子中本地安装Apache HTTP服务器作为普通用户(非root用户).
我已经下载了Apache 2.4.1版本的Apache HTTP服务器[http://httpd.apache.org/download.cgi].但是,当我尝试在我的框中本地构建和安装时,我收到以下错误:
httpd/httpd-2.4.1 1059> ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... no
configure: error: APR not found. Please read the documentation.
Run Code Online (Sandbox Code Playgroud)
我不确定它正在寻找什么依赖 - 我的意思是下载包不包含它?我需要做什么来构建/部署Apache HTTP服务器?
提前致谢.
我想在我的linux机器上安装apache.但是当我尝试./configure --prefix = /usr/local/apache
它时显示错误configure: error: APR not found. Please read the documentation
.我尝试安装apr
,yum install apr apr-deve
它说
Package apr-1.4.6-1.fc15.x86_64 already installed and latest version
No package apr-deve available.
Nothing to do
我现在应该怎么做?请原谅我是LINUX的新手
我有一些业余爱好C编程项目,我想开始.我正在寻找一个拥有自由许可证的开源库(我想要信用,但几乎任何人都可以使用).库需要比C标准库和一些可移植的线程原语更好的字符串.
Apache Portable Runtime是编译某些应用程序的依赖项.
./configure
说这apr-1
是必要的.
如何在Ubuntu上安装它?
你应该做的就是:
./configure
make
make install
Run Code Online (Sandbox Code Playgroud)
在./compile之后我得到以下输出:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: creating apr.pc
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing libtool commands
rm: cannot remove `libtoolT': No such file or directory
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged
Run Code Online (Sandbox Code Playgroud)
当我尝试"make"时,找不到make文件:
-bash: make: command not found
Run Code Online (Sandbox Code Playgroud)
这有什么不对?
我们收到与AXIS2 1.7.3相关的错误.我们使用最新的Java8运行Tomcat8.
java.io.IOException: APR error: -730054
org.apache.axis2.AxisFault: java.io.IOException: APR error: -730054
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:365)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:244)
at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:514)
at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:450)
at org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:415)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:205)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at ad.common.GZipServletFilter.doFilter(GZipServletFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2500)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2489)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused …
Run Code Online (Sandbox Code Playgroud) Tomcat可以选择使用APR来处理连接.使用它有什么好处?有人有第一手经验吗?
尝试使用XCode版本4.4.1(4F1003)在MountainLion上构建mod_auth_openid,我收到有关缺少'cc'命令的投诉,如下所示:
/usr/share/apr-1/build-1/libtool --silent --mode=link /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc -o mod_auth_openid.la -rpath /usr/libexec/apache2 -module -avoid-version libmodauthopenid.la -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/local/include -L/usr/local/lib -lopkele -lcurl -lexpat -ltidy -lssl -lcrypto -lz -L/usr/lib -lpcre -lcurl
/usr/share/apr-1/build-1/libtool: line 4574: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc: No such file or directory
apxs:Error: Command failed with rc=8323072
Run Code Online (Sandbox Code Playgroud)
该怎么办?
当我将Lion服务器升级到Mountain Lion时,它似乎从apache中删除了我的mod_xsendfile.
我按照本网站的说明进行操作,但遇到了"没有这样的文件或目录"错误.在谷歌的帮助下,我发现这个页面给了我解决方案:"sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/工具链/ OSX10.8.xctoolchain"
看起来不错,但是当我尝试运行"sudo apxs -cia mod_xsendfile.c"时,我收到"致命错误:'apr.h'文件未找到"错误.
有任何想法吗?