我删除了我的旧Xampp本地服务器,并安装了最新的
> Apache / 2.4.18(Unix)
> OpenSSL / 1.0.2e
> PHP / 7.0.1
> mod_perl / 2.0.8-dev
> Perl / v5.16.3
但是当我尝试安装它:
curl -sS https://getcomposer.org/installer | PHP
它说:
Some settings on your machine may cause stability issues with Composer. If you encounter issues,try to change the following: 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. Downloading... Composer successfully installed to: /Users/hammodgrimmie/composer.phar Use it: PHP composer.phar
请帮助.
首先有这里的链接,解决方案需要你安装brew:
https://apple.stackexchange.com/questions/126830/how-to-upgrade-openssl-in-os-x
https://apple.stackexchange.com/questions/126830/how-to-upgrade-openssl-in-os-x
如果您进入控制台时没有出现正确的版本:
openssl版本-a
这将有助于您切换版本.
Update OpenSSL on OS X with Homebrew
如果你想要一个快速修复,请参考Felipe Micaroni Lalli在3月21日的回答.