aak*_*pro 3 macos homebrew openssl
我刚刚在终端中输入openssl 版本,我得到了以下结果:
OpenSSL 0.9.8y 2013 年 2 月 5 日
所以我运行了brew update和brew upgrade openssl。
其中第一个将更新的 Homebrew 从 7afeb3af返回到 8cabfe85。,第二个返回openssl-1.0.1g已经安装。所以输入brew link --force openssl。
在上述过程之后,我输入了openssl version而我得到了相同的结果
OpenSSL 0.9.8y 2013 年 2 月 5 日。
如何在 mac osx 10.9.3 上更新 openssl?
运行brew info openssl并按照那里的说明进行操作。不要尝试--force将最新的 openssl 与默认情况下随 OSX 安装的 openssl 链接。(0.9.8)
具体来说,它会要求您将 openssl 的 Homebrew 版本(截至目前应该是 1.0.2)添加到您的 $PATH 中。
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
注意:确保export PATH从 bash_profile 中删除任何行,因为上面的这一行会导出它,以便您将 $PATH 变量的其余部分附加到末尾。要查看 bash 配置文件,请使用vi ~/.bash_profile
这样做应该可以解决安装包的任何问题(尤其是需要编译的 Ruby Gems)。
| 归档时间: |
|
| 查看次数: |
7948 次 |
| 最近记录: |