"./configure --with-apxs="命令出现错误Cannot find webserver等
2015-05-11 09:33
549 查看
在搭建web服务器的时候,在编译生成mod_jk的时候,需要用“./configure --with-apxs=”+“apxs的地址”,我们一般填写apxs的地址是按照网上的教程:“/usr/bin/apxs”或者“/usr/local/apache/bin/apxs”。这样可能找不到apxs,就会报错类似“configure:error:Invalid location for apxs:'/usr/local/apache/bin/apxs'”和“configure:
error:Cannot find the WebServer”
第一个是因为地址不存在出现的错误,也就是没有apache这个目录,第二个是因为找不到apxs或者找到的apxs不是你需要的(因为我安装的时候/usr/bin/apxs是存在的)
好了,我们知道问题是找不到正确的apxs,那我们可以通过命令"which apxs"先找到正确的apxs的位置(如:/bin/apxs),然后再把这个路径添加到"./configure --with-apxs="后面(如"./configure --with-apxs=/bin/apxs"),然后就可以了。
本文建立服务器过程参考:http://blog.sina.com.cn/s/blog_4881040d0100zdwl.html
不要问我是谁,请叫我红领巾
error:Cannot find the WebServer”
第一个是因为地址不存在出现的错误,也就是没有apache这个目录,第二个是因为找不到apxs或者找到的apxs不是你需要的(因为我安装的时候/usr/bin/apxs是存在的)
好了,我们知道问题是找不到正确的apxs,那我们可以通过命令"which apxs"先找到正确的apxs的位置(如:/bin/apxs),然后再把这个路径添加到"./configure --with-apxs="后面(如"./configure --with-apxs=/bin/apxs"),然后就可以了。
本文建立服务器过程参考:http://blog.sina.com.cn/s/blog_4881040d0100zdwl.html
不要问我是谁,请叫我红领巾
相关文章推荐
- ArcGISServer9.3 出现"Server Host Cannot be null"的错误
- brew安装php70出现configure: error: Cannot find libz 错误解决方法
- configure: error: Cannot find the WebServer
- VirtualBox安装Ubuntu系统,出现“connect: Network is unreachable” 和cannot find device "eth0"问题
- 重装mysql后出现"cannot create windows service for mysql.error:0"错误
- 生成圆角,使用curvycorners.js出现错误"No object with ID #calpopup exists yet"的解决
- configure: error: Cannot find the WebServer
- 编译驱动时出现"Cannot open file trace.h"错误
- Zend Studio出现 Some characters cannot be mapped using "GBK" character encoding 错误
- 使用VS2003创建WEB程序的时候出现"AutoMation服务器不能创建对象"错误
- 调试 ASP.NET 应用程序时出现"无法在 Web 服务器上启动调试"的错误
- 部署web项目时tomcat出现 Exception in thread "main"错误
- .net中,WEB服务器错误,"http://1.1 500 server error" 解决办法
- 忆龙2009:使用ACS进行机器跨域认证出现错误:"NTLIB: Could not find machine host"
- vs .net 2005 打开VSS项目时出现:"could not find the visual sourcesafe internet web service connection"的解决方案
- configure: error: Cannot find the WebServer
- intellij的maven工程"Server IPC version 9 cannot communicate with client version"错误的解决办法
- 用imp命令导入数据表时出现了"只有DBA 才能导入由其它DBA 导出的文件"错误
- 出现"cannot be resolved or is not a field"莫名错误的解决方法
- RMAN 下执行startup 命令出现"ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务" 错误