2010-08-03 192 views

回答

37

尝试yum install php-bcmath。 如果你仍然无法找到任何东西,尽量yum search bcmath找到包名

+0

嗨,我试着这个更新,但它没有奏效。但我在谷歌做了一些搜索,发现centos没有bcmath在我的服务器上的php版本。所以我想我打算找一些其他的替代品。谢谢 – Jay 2010-08-04 04:39:22

+0

好吧,我认为你有fedora ...在你的问题中指定你的分布是有用的。 – greg0ire 2010-08-04 08:33:55

+0

CentOS Linux版本6.0(最终版)有php-bcmath – 2012-12-07 10:31:32

5

在CentOS 6.5很好工作

百胜安装bcmath时

我所有的调用bcmath时功能启动一个Apache重新启动后,工作权

服务httpd重启

甜!

+1

为我工作过谢谢 – Glen 2016-04-29 08:27:40

2

渐渐调用未定义功能bcmod()

yum install php-bcmath 
systemctl restart httpd.service 

你应该再看到类似下面的phpinfo上市/etc/php.d/bcmath.ini东西。

Centos 7 
Plesk 12 
PHP 5.4.16 
2

我发现有包的回购没有启用。在OEL7,

$ vi /etc/yum.repos.d/ULN-Base.repo 
Set enabled to 1 for ol7_optional_latest 

$ yum install php-bcmath 

和工作...

我用下面的命令来查找,其中包装是

$ yum --noplugins --showduplicates --enablerepo \* --disablerepo \*-source --disablerepo C5.\*,c5-media,\*debug\*,\*-source list \*bcmath 
+0

工作在Debian上。 – Kaymaz 2017-03-01 13:43:53

6

Ubuntu和php7.1

​​
+1

sudo apt-get install php7.0-bcmath – 2017-09-14 14:33:55

+0

如何在Mac中安装它? – 2018-01-04 03:28:05

0

我只是尝试下面的包为PHP v5.6和它为我工作。

yum install php56w-bcmath