问题描述
我删除了旧的Xampp本地服务器,并安装了最新的本地服务器
I deleted my old Xampp local server and installed latest one it's include
- Apache/2.4.18(Unix)
- OpenSSL/1.0.2e
- PHP/7.0.1
- mod_perl/2.0.8-dev
- Perl/v5.16.3
但是当我尝试通过以下方式安装它时:
But when I try to install it by:
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
请帮助.
推荐答案
您不需要删除XAMPP.如果您将XAMPP用于幼虫5.2,它将更好.简而言之,XAMPP具有您工作的所有更新. Mac已内置PHP和其他功能,但是幼虫5.1/5.2需要PHP和OpenSSL的升级版本.因此,请按照以下步骤操作((希望您的Mac中拥有最新的XAMPP)
You don't need to delete XAMPP. If you are using XAMPP for larval 5.2, it will be much better. In short XAMPP has all the updates for your work. Mac has built in PHP and other things but larval 5.1/5.2 needs an upgraded version of PHP and OpenSSL. So follow these steps,(hope you have latest XAMPP in your mac)
-
cd
-
sudo nano .bash_profile
您将拥有新的.bash_profile.在下面添加语句 -
export PATH=/Applications/XAMPP/xamppfiles/bin:$PATH
点击输入" >>"control-X" >>"Y"(保存)>>输入"
cd
sudo nano .bash_profile
you will have new .bash_profile. add below statementexport PATH=/Applications/XAMPP/xamppfiles/bin:$PATH
hit "enter" >> "control-X">> "Y" (saving)>> "enter"
退出终端并重新打开终端
quit terminal and reopen terminal
就是这样.进一步检查您的步骤,您可以点击以下链接: http://www.kaanburaksener.com/Blog/installing-laravel-on-mac-os-x-with-xampp/
That's it. Further checking your steps you can follow this link:http://www.kaanburaksener.com/blog/installing-laravel-on-mac-os-x-with-xampp/
这篇关于PHP使用的OS X和OpenSSL上的Composer错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!