Ubuntu 18.10 安装 PHP 扩展 BCMath 时找不到 php7.2-bcmath 解决方案

此文章发布于 49 个月前,部分信息可能已经过时,请自行斟酌确认。

经测试 ubuntu 18.04 LTS 可以直接安装 php7.2-bcmath,命令如下:

apt install php7.2-bcmath

ubuntu 18.10 源中没有这个包,经搜索找到了离线 deb 包,下载后通过以下命令安装即可:

dpkg -i php7.2-bcmath_7.2.19-0ubuntu0.18.10.1_amd64.deb

PHP 扩展 php7.2-bcmath For Ubuntu 18.10 Cosmic 下载地址:

https://launchpad.net/ubuntu/cosmic/+package/php7.2-bcmath

注意查看系统的版本号及架构,64 位还是 32 位等,不要下载错了。

如微酷本次虚拟机上的系统为 amd64,下载地址为:

https://launchpad.net/ubuntu/cosmic/amd64/php7.2-bcmath/7.2.19-0ubuntu0.18.10.1

wget http://launchpadlibrarian.net/426814949/php7.2-bcmath_7.2.19-0ubuntu0.18.10.1_amd64.deb
dpkg -i php7.2-bcmath_7.2.19-0ubuntu0.18.10.1_amd64.deb

运行后即时生效。
20200330_85006.png

最后修改:2020 年 03 月 30 日 08 : 50 AM
如果觉得我的文章对你有用,请随意赞赏

发表评论