如何使用PHP 7安装ext-curl扩展? [英] How do I install the ext-curl extension with PHP 7?
本文介绍了如何使用PHP 7安装ext-curl扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用这个软件库安装了PHP 7,但是当我尝试运行 composer install
,它会产生此错误:
I've installed PHP 7 using this repo, but when I try to run composer install
, it's giving this error:
- package] requires ext-curl * - >您的系统缺少所需的PHP扩展程序curl。
使用PHP 5,您可以通过运行 yum
或 apt-get install php5-curl
命令轻松地安装它,但我找不到如何安装PHP 7等效的。
With PHP 5, you can easily install it by running the yum
or apt-get install php5-curl
command, but I can't find how to install the PHP 7 equivalent.
如何为PHP 7安装ext-curl?
How do I install ext-curl for PHP 7?
推荐答案
我可以安装它:
sudo apt-get install php-curl
这将安装一个依赖包,这取决于默认的php版本。
on my system. This will install a dependency package, which depends on the default php version.
这篇关于如何使用PHP 7安装ext-curl扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文