我已经使用this repo安装了PHP7,但是当我尝试运行composer install
时,它给出了这个错误:
PHP
在PHP5中,您可以通过运行yum
或apt-get install php5-curl
命令轻松地安装它,但是我找不到如何安装PHP7的等价物。
如何为PHP7安装ext-curl?
发布于 2016-01-27 18:48:06
我可以通过以下方式安装它:
sudo apt-get install php-curl
在我的系统上。这将安装依赖包,依赖包依赖于默认的php版本。
在那之后重启apache
sudo service apache2 restart
发布于 2016-07-12 11:08:57
sudo apt-get install php7.0-curl
发布于 2016-12-19 00:45:12
如果"sudo apt-get install php- curl“命令不起作用,并显示错误,我们应该在安装curl之前运行此代码。
更新存储库ppa:ondrej/php
https://stackoverflow.com/questions/33775897
复制相似问题