我正在尝试为我的laravel 5项目安装oauth-5-laravel软件包,但是当我尝试在ubuntu终端中运行命令composer update时,我收到了错误。
您的要求无法解析为可安装的软件包。
Problem 1
- elasticsearch/elasticsearch v1.4.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.4.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.3.4 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.3.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.3.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.3.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.2.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.2.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.2.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.1.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.0.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.0.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- elasticsearch/elasticsearch v1.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- fairholm/elasticquent v1.0.0 requires elasticsearch/elasticsearch ~1.0 -> satisfiable by elasticsearch/elasticsearch[v1.0, v1.0.1, v1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.4.0, v1.4.1].
- Installation request for fairholm/elasticquent 1.0.* -> satisfiable by fairholm/elasticquent[v1.0.0].
那我怎么解决这个问题呢?提前谢谢。
答案 0 :(得分:0)
系统中缺少所请求的PHP扩展卷曲。
事实上,它告诉您在系统上安装 Curl ...
所以,如果你是英语初学者和ubuntu,你可以运行终端并输入sudo apt-get install php5-curl
+ Enter
来在你的系统上安装Curl。
答案 1 :(得分:0)
您尚未安装或启用curl
php扩展程序。
在终端中运行以下命令以查看.ini
文件的位置
php -i | grep ini
应该输出这样的东西
Loaded Configuration File => /path/to/php.ini
现在检查php.ini
以确定您是否启用了扩展程序
grep curl /the/above/path/to/php.ini
如果它已被禁用,您应该看到它已注释,如下所示
#extension=curl.so
简单地取消注释,并享受乐趣
如果不存在,请继续
通过在终端中运行以下内容安装php-curl
扩展程序
apt-get install php5-curl
检查是否已启用
php -m | grep curl
如果一切顺利,就应该输出
curl