升级到Ubuntu 16.04
,并在安装PHP5
后遇到问题。
安装了PHP-5,包括以下内容:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5.5 # for PHP 5.5
试图安装php-curl,但它不起作用。
sudo apt-get install php5-curl
错误: E:无法找到软件包php5-curl
发布于 2016-08-06 06:34:25
Ubuntu16.04中的默认版本为7.0,如果您想使用不同的版本,则需要根据PHP:安装package
sudo apt-get install php7.4-curl
sudo apt-get install php7.3-curl
sudo apt-get install php7.2-curl
sudo apt-get install php7.1-curl
sudo apt-get install php7.0-curl
sudo apt-get install php5.6-curl
sudo apt-get install php5.5-curl
发布于 2016-08-06 06:33:26
这对我来说很管用:
sudo apt-get install php5.6-curl
发布于 2017-05-26 19:44:43
做:
apt-get update
然后:
apt-get install php5-curl
https://stackoverflow.com/questions/38800606
复制相似问题