2010-08-03 153 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