如何在 ubuntu 21.04 中下载或安装 php7.2-curl 扩展?

如何在 ubuntu 21.04 中下载或安装 php7.2-curl 扩展?

我想在我当前的 php 项目中安装 curl 扩展(php 版本是 7.2.34),为此我使用此命令 sudo apt-get install php7.2-curl 它抛出以下错误并且当我运行 php -m 命令时它没有显示在列表中,如何安装 curl 扩展请帮我解决这个问题..

[sudo] password for payarc: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.2-curl : Depends: libcurl3 (>= 7.44.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

Error when i am doing composer update

The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension.

相关内容