我正在使用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'
回答我自己的问题.通过以下repo更新管理以解决此问题.
add-apt-repository ppa:ondrej/php apt update apt install php7.1-bcmath
重启apache,一切顺利.