user2206498
user2206498

Reputation: 1

yum install php-bcmath Requires: php-common(x86-64) = 5.3.3-22.el6

Im running centos 6, and I tried to:

yum install php-bcmath, i got this error:

yum install php-bcmath
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.checkdomain.de
 * epel: mirror.de.leaseweb.net
 * extras: mirror.checkdomain.de
 * rpmforge: mirror.de.leaseweb.net
 * updates: mirror.checkdomain.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.3.3-22.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-bcmath-5.3.3-22.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-bcmath-5.3.3-22.el6.x86_64 (base)
           Requires: php-common(x86-64) = 5.3.3-22.el6
           Installed: php-common-5.4.9-1.el6.remi.x86_64 (@remi-test)
              php-common(x86-64) = 5.4.9-1.el6.remi
           Available: php-common-5.3.3-22.el6.x86_64 (base)
              php-common(x86-64) = 5.3.3-22.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Please help,

Thanks

Upvotes: 0

Views: 15098

Answers (4)

Tan Bui
Tan Bui

Reputation: 11

You can try (for Centos 6.4)

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php54w
yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
yum install php54w-bcmath

(source: http://www.webtatic.com/packages/php54/)

But it may cause another problem about versions.

The simple way is uninstall php 5.4 (or 5.5), install php 5.3, install php-bcmatch then update to php5.4 (or newer)

Upvotes: 1

Dazag
Dazag

Reputation: 701

It may sound stupid, but it made me lost few hours (yeah, i know..) but do not forget:

sudo service httpd graceful

after:

yum install php-bcmath

Upvotes: 2

Bennet Joseph
Bennet Joseph

Reputation: 31

My Server was running PHP 5.6 and the below command solved my issue

sudo yum -y install php56-bcmath

sudo service httpd restart

Upvotes: 2

Tan Bui
Tan Bui

Reputation: 81

I found out problem comes from the new PHP version (5.4, 5.4), which installed in a separate repo.
So, we just need to install php-bcmath in the main repo (version 5.3) using command:

yum install php-bcmath --enablerepo=remi

With "remi" is the main repo, you can see it by go to /etc/yum.repos.d then using ll

Upvotes: 5

Related Questions