我删除了旧的 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
这将帮助您切换版本。使用 Homebrew 更新 OS X 上的 OpenSSL https://stackoverflow.com/questions/15185661/openssl-version-macosx-homebrew
如果您想要快速修复,请参阅 Felipe Micaroni Lalli 在 2014 年 3 月 21 日的回答。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)