问题描述
我正在使用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
但是,它不起作用:
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
的开头,或者至少出现在在/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!