在MacOS上的OpenSSL 1.0.2m [英] OpenSSL 1.0.2m on macOS

查看:201
本文介绍了在MacOS上的OpenSSL 1.0.2m的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要构建一个特定的库,我需要带devel软件包的openssl库版本1.0.2m.我正在使用macOS.使用brew install openssl安装最新版本1.1.1d.

For building one particular library I need openssl library version 1.0.2m with devel package. I am working on macOS. Using brew install openssl installs latest version 1.1.1d.

推荐答案

由于OpenSSL 1.0.2将于2019年底到期,因此它不再可通过Homebrew获得. Homebrew 2.2.0公告中对此进行了提及.

Since OpenSSL 1.0.2 is end of lifed by the end of 2019, it is no longer available via Homebrew. This is mentioned in the Homebrew 2.2.0 announcement.

从源代码自行构建和安装OpenSSL 1.0.2相当简单.您可以从旧版1.0.2版本页下载所需版本,然后按照以下步骤操作:在安装中找到的说明.

It is fairly straightforward to build and install OpenSSL 1.0.2 yourself from source. You can download your required version from the Old 1.0.2 Releases page and follow the instructions found in INSTALL.

也有可能恢复旧的公式并从中安装,但我不能保证效果如何.以下步骤确实完成了安装过程:

It may be possible as well to recover an older formula and install from that, but I can not guarantee how well that works. The following steps did complete the installation process:

$ git clone https://github.com/Homebrew/homebrew-core.git
$ cd homebrew-core
$ git checkout 75b57384 Formula/openssl.rb
$ brew install Formula/openssl.rb

对我来说,这表明:

Warning: openssl 1.1.1d is available and more recent than version 1.0.2m.
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2m.high_sierra.bottle.tar.gz

,然后愉快地继续下去.最后的快速尝试使您确信它运行良好:

and went on happily after that. A quick try at the end gives some confidence that it worked out well:

$ /usr/local/opt/openssl/bin/openssl version
OpenSSL 1.0.2m  2 Nov 2017


如果您不想直接使用git,也可以尝试下载该版本的gitHub.com 中的rel ="noreferrer"> openssl.rb并在其上运行brew install.


If you prefer not to use git directly, you can also try downloading that version of openssl.rb from gitHub.com and run brew install on it.

如果您想知道提交哈希值的来源,我碰巧知道该公式曾经被称为-惊喜-openssl.rb(但是使用git查询删除的文件也可以).因此,我检查了Formula/openssl.rb的历史记录,发现:

If you wonder where that commit hash came from, I happened to know that the formula used to be called -- surprise -- openssl.rb (but using git to query for removed files would have worked as well). Therefore, I inspected the history for Formula/openssl.rb and found:

$ git log -- Formula/openssl.rb
...
commit 75b573845a17aaf3f7c84dc58e97cf5fe39a502b
Author: BrewTestBot <brew-test-bot@googlegroups.com>
Date:   Thu Nov 2 17:20:33 2017 +0000

    openssl: update 1.0.2m bottle.

这篇关于在MacOS上的OpenSSL 1.0.2m的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆