首页 > Web开发 > 详细

"./configure --with-apxs="命令出现错误Cannot find webserver等

时间:2015-05-11 10:52:29      阅读:1036      评论:0      收藏:0      [点我收藏+]

在搭建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/apx是存在的

好了,我们知道问题是找不到正确的apxs,那我们可以通过命令"which apxs"先找到正确的apxs的位置(如:/bin/apxs),然后再把这个路径添加到"./configure --with-apxs="后面(如"./configure --with-apxs=/bin/apxs"),然后就可以了。

本文建立服务器过程参考:http://blog.sina.com.cn/s/blog_4881040d0100zdwl.html

不要问我是谁,请叫我红领巾

"./configure --with-apxs="命令出现错误Cannot find webserver等

原文:http://blog.csdn.net/uncle_jeffery/article/details/45640559

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!