Rumah  >  Artikel  >  pembangunan bahagian belakang  >  composer安装失败

composer安装失败

WBOY
WBOYasal
2016-06-06 20:17:291956semak imbas

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

一直出现这段错误提示,真的不知道怎么搞,php.ini的openssl已经启动了,查看phpinfo也能查看到openssl,我用的xampp集成的,php版本为5.6,求教啊,

回复内容:

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

一直出现这段错误提示,真的不知道怎么搞,php.ini的openssl已经启动了,查看phpinfo也能查看到openssl,我用的xampp集成的,php版本为5.6,求教啊,

在命令行里面 php -m 看一下。可能你是配置的 web 下面的 php.ini 而不是 cli 下面的 php.ini

composer

需要开启openssl的php扩展

用七牛做了个镜像:试看看?

<code>curl -sS https://o1kh8c7bn.qnssl.com/installer | php
mv composer.phar /usr/local/bin/composer</code>
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn