我使用Ubuntu16服务器来测试php7.1。我的一个应用程序使用了bcadd函数。我知道我需要为此安装bcmath模块,但是我找不到php7.1-bcmath。当我尝试安装apt install php-bcmath时,它只是简单地安装了php7.0-bcmath模块。
我在我的服务器上找不到要安装的php7.1-bcmath模块。有谁有主意吗?
apt install php7.1-bcmath返回如下,
E: Unable to locate package php7.1-bcmath
E: Couldn't find any package by glob 'php7.1-bcmath'
E: Couldn't find any package by regex 'php7.1-bcmath'发布于 2017-05-11 11:08:07
回答我自己的问题。已通过以下repo更新修复此问题。
add-apt-repository ppa:ondrej/php
apt update
apt install php7.1-bcmath重新启动apache,一切就绪。
发布于 2018-05-02 06:02:26
安装:https://packages.ubuntu.com/fr/artful/amd64/php7.1-bcmath/download
添加以下内容:
deb http://security.ubuntu.com/ubuntu artful-security main universe添加到/etc/apt/Soures.list
$ sudo apt update
$ sudo apt install php7.1-bcmath发布于 2021-05-14 19:44:22
正在寻找Ubuntu 20.04的用户:
sudo apt install php-bcmath它将自动安装与您的PHP版本兼容的bcmath。
https://stackoverflow.com/questions/43905580
复制相似问题