Warning: openssl-1.0.2g already installed when using HomeBrew

半腔热情 提交于 2019-12-13 02:35:53

问题


I'm working on OS X 10.11.4. I'm trying to get started with Zend Framework2 and am using the official manual so have installed composer. When installing composer I got this warning:

The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or TLSv1.1. If possible you should upgrade OpenSSL to version 1.0.1 or above.

So I opened Terminal and used the following to check my openssl version:

$ openssl version
OpenSSL 0.9.8zh 14 Jan 2016

So I looked into updating and came across How to upgrade OpenSSL in OS X on the Apple Stack Exchange. I then used the following to update HomeBrew and install the latest version of OpenSSL

$ brew update
$ brew install openssl

But got this warning:

Warning: openssl-1.0.2g already installed

So then I followed this advice (Update OpenSSL on OS X with Homebrew - top answer)

$ brew unlink openssl && brew link openssl --force
Unlinking /usr/local/Cellar/openssl/1.0.2g... 1591 symlinks removed
Linking /usr/local/Cellar/openssl/1.0.2g... 1588 symlinks created
$ which openssl
/usr/local/bin/openssl
$ openssl version
OpenSSL 0.9.8zh 14 Jan 2016

So it seems I have the updated version on my machine but it isn't being used by default?

Sorry for my naivety but I'm a complete beginner.

Can any one tell me what I'm doing wrong?

Thanks in advance

来源:https://stackoverflow.com/questions/36372000/warning-openssl-1-0-2g-already-installed-when-using-homebrew

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!