macos - 检查 OpenSSL 版本 >= 0.9.8a... 失败打开 ssl apache http-server Mac OS X El Capitan

标签 macos apache ssl openssl

我一直在尝试在我的 mac 机器上安装 apache http 服务器,问题是我想在其中启用 ssl 功能,所以我在 ./configure 语法中添加了更多参数

./configure --prefix=path --enable-ssl

但后来它停止了并给我这个错误

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

首先我认为我需要在 mac 上升级 openssl 然后我更新它并检查使用这个 openssl 版本 -a 它给了我这个结果

OpenSSL 1.0.2j 26 Sep 2016 built on: reproducible build, date unspecified platform: darwin64-x86_64-cc options: bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx) compiler: clang -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM OPENSSLDIR: "/usr/local/etc/openssl"

但是当我重试 ./configure 时它仍然给我上述错误..知道实际发生了什么吗?

最佳答案

原来我已经安装了它只是 MAC 指向位于

/usr/bin/openssl

有两种解决方法,但首先我需要先安装新版本,我通过运行来使用 home brew

brew install openssl

在那之后,要么你想将旧版本与新版本进行符号链接(symbolic link)(但我先做了备份!)

ln -s /usr/bin/openssl path_to_the_new_version

或者,在/usr/local/bin 上创建它,因为 MAC 将优先从/usr/local 优先

关于macos - 检查 OpenSSL 版本 >= 0.9.8a... 失败打开 ssl apache http-server Mac OS X El Capitan,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41822582/

相关文章:

regex - htaccess 没有按我的预期工作

apache - Firefox 中的 SSL 证书警告

security - 我可以在 Heroku 的同一域中使用 EV SSL 和 Wildcard SSL 吗?

macos - OS X : sending mail to localhost

macos - OSX 10.8 OpenGL扩展

c++ - 安全传输 : Load server certificate from file

apache - 将所有请求从旧域重定向到新域

apache - 我应该如何限制对 perl-cgi 中表单邮件脚本的直接 url 访问?

ssl - 在 Xamarin Android 中接受自签名证书

swift - MapKit 错误 : NSHostingView is being laid out reentrantly while rendering its SwiftUI content