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

曾洲
2023-12-01
[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
 类似资料: