Composer install failed(作曲家安装失败)
问题描述
我正在尝试使用 PHP 版本 5.6.*
在我的 Ubuntu 16.04
中安装 composer.
I'm trying to install composer in my Ubuntu 16.04
with PHP version 5.6.*
.
我用过:curl -sS https://getcomposer.org/installer |php
.但它给我的错误如下:
I used:curl -sS https://getcomposer.org/installer | php
. But it is giving me error as follows:
All settings correct for using Composer
Downloading...
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Connection refused
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
The download failed repeatedly, aborting.
我之前没有安装作曲家.
I do not have composer installed previously.
推荐答案
我通过下载 解决了这个问题https://curl.haxx.se/ca/cacert.pem 并在我的 etc/php/5.6/cli/php.ini
和 etc/php 中给出它的路径/5.6/apache2/php.ini
.
I solved the issue by downloading https://curl.haxx.se/ca/cacert.pem and giving it's path in my etc/php/5.6/cli/php.ini
and etc/php/5.6/apache2/php.ini
.
然后运行 sudo service apache2 restart &&sudo apt install composer
工作正常.
Then after running sudo service apache2 restart && sudo apt install composer
just worked fine.
这篇关于作曲家安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:作曲家安装失败
基础教程推荐
- 超薄框架REST服务两次获得输出 2022-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01