LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1454|回复: 11

关于整合apache2和tomcat5中的错误

[复制链接]
发表于 2005-12-23 17:28:47 | 显示全部楼层 |阅读模式
当我执行
./configure -with-apx=/usr/share/apache2/bin/apx -with-java-home=${JAVA_HOME}
时错误如下
checking for libtool... /usr/bin/libtool
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer
发表于 2005-12-23 18:09:37 | 显示全部楼层
你用./configure --help看一下
看参数是--with-apxs还是--with-apxs2
再试试 注意apache的目录是否写对了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-23 19:00:49 | 显示全部楼层
对呀,我用的是apache2安装目录是/usr/share那不就是应该写成/usr/share/apache2吗
回复 支持 反对

使用道具 举报

发表于 2005-12-23 19:40:29 | 显示全部楼层
你怎么选这个做安装目录......
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-23 20:17:46 | 显示全部楼层
apt-get install apache2
会安装到什么地方呢,不是
/usr/share吗?
回复 支持 反对

使用道具 举报

发表于 2005-12-23 20:40:33 | 显示全部楼层
哦.....
我没用过Debian 我是从源码安装的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-24 10:41:29 | 显示全部楼层
现在改成--with-apxs后出现如下错误
checking for libtool... /usr/bin/libtool
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
configure: error: Invalid location for apxs: '/usr/share/apache2/bin/apxs'
回复 支持 反对

使用道具 举报

发表于 2005-12-24 11:54:42 | 显示全部楼层
configure: error: Invalid location for apxs: '/usr/share/apache2/bin/apxs'

路径搞错了 你自己再找找~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-24 14:18:46 | 显示全部楼层
如果是路径错了那么
apt-get install apache2
会安装到什么地方呢?
不是/usr/share/apache2吗?
回复 支持 反对

使用道具 举报

发表于 2005-12-24 17:50:42 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表