配置httpd时报错:checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but

本文记录了在尝试编译安装Apache时遇到的错误,特别是在启用SSL模块时出现的问题。错误原因是OpenSSL版本过旧,导致mod_ssl无法正常构建。解决办法是通过yum安装openssl-devel包来更新OpenSSL版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[root@localhost ~]#cd /home/software/httpd-2.4.39/
[root@localhost httpd-2.4.39]# ./configure --prefix=/usr/local/apache --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-so --enable-rewrite --enable-vhost-alias --enable-http --enable-mime-magic --enable-ssl --enable-proxy

报错信息:

checking for OpenSSL... checking for user-provided OpenSSL base directory... none
checking for OpenSSL version >= 0.9.8a... FAILED
configure: WARNING: OpenSSL version is too old
no
checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but can not be built due to prerequisite failures

解决方法:

这是由于没有安装openssl-devel,只要用yum进行安装即可

yum install openssl-devel -y
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值