我正在使用 Ubuntu 16 服务器进行测试 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'
原文由 Vajira Lasantha 发布,翻译遵循 CC BY-SA 4.0 许可协议
对于 Ubuntu 16.04:添加这个 ppa http://ppa.launchpad.net/jczaplicki/xenial-php74-temp/ubuntu 打开 synaptic,然后卸载任何已经安装的 bcmath 模块。然后重新安装php7.4和php7.4-xxx模块