LAMP- httpd 2.4.4 安装 报错

回复 收藏
./configure --prefix=/usr/local/apache2 --sysconfdir=/etc/httpd  --enable-so --enable-rewirte --enable-ssl --enable-cgi --enable-cgid --enable-modules=most --enable-mods-shared=most --enable-mpms-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/


报错 checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but can not be built due to prerequisite failures

删掉 ./configure 中的 --enable-ssl  可以 解决,但是 缺少  支持 https
2015-03-03 23:15 举报
已邀请:
0

李昂

赞同来自:

make  出错。。。。    XXXXXXXXX
0

李昂

赞同来自:

make[2]: *** [exports.lo] 错误 1 make[2]: Leaving directory `/usr/local/src/httpd-2.4.10/server' make[1]: *** [all-recursive] 错误 1 make[1]: Leaving directory `/usr/local/src/httpd-2.4.10/server' make: *** [all-recursive] 错误 1
0

李昂

赞同来自:

求解。
0

一介书生

赞同来自:

在./configure 中加上 --with-included-apr 在重新编译
0

qq20847697

赞同来自:

{:5_121:}
0

aiplaypc

赞同来自:

安装了openssh了吗?
0

李昂

赞同来自:

一介书生 发表于 2015-3-4 08:40
在./configure 中加上 --with-included-apr 在重新编译

不行滴。
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
报错信息
0

一介书生

赞同来自:

李昂 发表于 2015-3-4 11:42
不行滴。
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack  ...

根据错误提示:在当前目录/srclib/中,为发现apr和apr-util,将apr和apr-util源码下载,解压放到httpd-2.4.3/srclib里面
0

疾风

赞同来自:

本帖最后由 疾风 于 2015-3-4 16:46 编辑

1.检查apr和apr-util包的安装位置(或者先安装源码包)
cp -r apr-1.4.6 httpd-2.4.2/srclib/apr
cp -r apr-util-1.4.1 httpd-2.4.2/srclib/apr-util

2.检查环境
yum install openssl-devel
yum update openssl

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: