使用 Homebrew 在 OS X 上更新 OpenSSL [英] Update OpenSSL on OS X with Homebrew

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

问题描述

我使用的是 MacOS X 10.7.5,由于 handshake,我需要更新的 OpenSSL 版本失败.互联网上有几个教程,我尝试了以下方法:

I'm using MacOS X 10.7.5 and I need a newer OpenSSL version due to handshake failures. There are several tutorials on the internet and I tried the following:

brew install openssl
brew link openssl --force

尽管如此,它不起作用:

Nevertheless, it does not work:

openssl version
OpenSSL 0.9.8r 8 Feb 2011

brew unlink openssl && brew link openssl --force
Unlinking /usr/local/Cellar/openssl/1.0.1e... 1139 links removed
Linking /usr/local/Cellar/openssl/1.0.1e... 1139 symlinks created

SVN 问题也没有解决.有任何想法吗?我宁愿不尝试 MacPorts 方式,因为它可能会干扰 Homebrew.

The SVN issue is not resolved either. Any ideas? I would rather not try the MacPorts way because it may interfere with Homebrew.

推荐答案

如果你使用 Homebrew /usr/local/bin 应该已经在 $PATH 的前面code> 或至少在 /usr/bin 之前.如果您现在在终端窗口中运行 brew link --force openssl,请打开一个新窗口并在其中运行 which openssl.它现在应该在 /usr/local/bin 下显示 openssl.

If you're using Homebrew /usr/local/bin should already be at the front of $PATH or at least come before /usr/bin. If you now run brew link --force openssl in your terminal window, open a new one and run which openssl in it. It should now show openssl under /usr/local/bin.

这篇关于使用 Homebrew 在 OS X 上更新 OpenSSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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