更新 OSX 上的 OpenSSL 版本
当前在 OSX 10.7 Lion 上安装了 openssl 0.9.8r。这个版本是 2011 年 2 月的版本,我想将其更新到最新版本。我无法使用自动更新,因为我需要enable-cms选项,所以我从源代码构建它,运行./Configure darwin64-x86_64-cc
和./config enable-cms - -openssldir=~/usr/local/ssl
。 然后我进行了“make”和“make install”,没有任何错误,但仍然安装了旧版本。
> openssl version
OpenSSL 0.9.8r 8 Feb 2011
我做错了什么?也许是文件夹?我只是猜测 /usr/local/
中的 ssl
文件夹一定是 Mac OSX 中默认打开的 ssl 安装目录?
Currently on OSX 10.7 Lion openssl 0.9.8r is installed. This build is from Feb 2011 and I want to update it to the newest version. I can't use the autoupdate because I need the enable-cms option so I built it from the source, run ./Configure darwin64-x86_64-cc
and ./config enable-cms --openssldir=~/usr/local/ssl
.
Then I made "make" and "make install" without any errors but there is still the old version installed.
> openssl version
OpenSSL 0.9.8r 8 Feb 2011
What am I doing wrong? Maybe it's the folder? I only guessed that the ssl
folder in /usr/local/
must be the default open ssl installation directory from Mac OSX?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我找到了解决方案。
开始之前:
前缀必须在
/usr/
文件夹中设置。注意:要执行正常更新,您可以删除
enable-cms
选项。Okay, I found a solution.
Before starting:
The prefix has to be set on the
/usr/
folder.Note: To perform just a normal update you can drop the
enable-cms
option.brew 版本(安装在“/usr/local/opt/openssl/bin”中)对我有这样的支持。
https://formulae.brew.sh/formula/[电子邮件受保护]
brew version (installed in '/usr/local/opt/openssl/bin') has such support for me.
https://formulae.brew.sh/formula/[email protected]