我在 Ubuntu 17.04 上使用 php7.1,我尝试使用以下命令安装 cURL:

sudo apt-get install php-curl

但我明白了:



我还尝试使用以下方法指定 cURL 版本:
sudo apt-get install php7.1-curl

但我得到了



那么,请问,如何为 PHP 7.1 安装 curl?

最佳答案

需要先添加PHP ppa,更新安装

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.1-curl

关于php - curl 和 mbstring php 7.1 在 ubuntu 17.04 上的安装,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49728104/

10-11 22:59
查看更多