Trouble Installing BCMATH

Support for webhosts that use CentOS
Post Reply
Posts: 1
Joined: 2012/04/24 23:47:51

Trouble Installing BCMATH

Post by gnomee2 » 2012/04/24 23:52:29

Okay I have CentOS 5.8 (Final) installed via cat /etc/red-hat release

I've ran yum update and yum upgrade (for good measure)

The problem I have I had before I ran yum update. It downloaded over 400mb and updated all sorts of stuff but didn't help.

When I run yum install php-bcmath I get told I'm missing the dependendy php-common = 5.1.6-32.e15

I currently have php-common-5.2.10-1.e15 installed.

I've searched for an RPM of bcmath that will work with my php-common and cannot find another version.

From my searching it seems the next version of php-common is 5.3 and CentOS 6+

I really have no idea what I"m doing so any help would be greatly appreciated. The person in our company normally in charge of this server is not available.

User avatar
Forum Moderator
Posts: 28563
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Trouble Installing BCMATH

Post by TrevorH » 2012/04/25 01:22:20


This is not a CentOS package unless it's the ancient and security vulnerable version from the CentOS testing repository. The default php version for CentOS 5.x is 5.1.6 though there are equivalent (and complete replacement)versions of the packages called php53-*. If your applications can use 5.1.6 then that's probably the best you can use. If they will not work on 5.1.6 but can work on 5.3 then the CentOS version may not be the best because the selection of extra php53* packages is quite limited. There is an alternate version of the php53 packages in the IUS repository (Google will find it for you) which is regarded as being better for this. OTOH, if your app is limited to php 5.2 then I believe IUS also has alternate versions of this too.

If that [u]is[/u] the old version of php 5.2 the testing repo then you need to upgrade it ASAP if it's on a public facing machine.

Your 400MB of updates will have brought your server up to date with fixes for known security vulnerabilities so please don't think it was a waste of time!

Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Trouble Installing BCMATH

Post by pschaff » 2012/04/25 21:19:52

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Some potential sources for php-bcmath:
[code]# yum --noplugins --showduplicates --enablerepo \* --disablerepo \*-source --disablerepo C5.\*,c5-media,\*debug\*,\*-source list \*bcmath
Available Packages
php-bcmath.x86_64 5.1.6-32.el5 base
php-bcmath.x86_64 5.2.13-jason.1 utterramblings
php-bcmath.x86_64 5.2.14-jason.1 utterramblings
php-bcmath.x86_64 5.2.16-jason.1 utterramblings
php-bcmath.x86_64 5.2.17-jason.2 utterramblings
php-bcmath.i386 atomic
php-bcmath.x86_64 atomic
php-bcmath.i386 atomic
php-bcmath.x86_64 atomic
php-bcmath.x86_64 5.3.9-1.el5.remi remi
php-bcmath.i386 atomic
php-bcmath.x86_64 atomic
php-bcmath.i386 atomic
php-bcmath.x86_64 atomic
php-bcmath.x86_64 5.3.10-2.el5.remi remi
php-bcmath.i386 atomic
php-bcmath.x86_64 atomic
php-bcmath.x86_64 5.4.0-0.16.RC8.el5.remi remi-test
php-bcmath.x86_64 5.4.0-1.el5.remi remi-test
php52-bcmath.x86_64 5.2.17-6.ius.el5 ius
php53-bcmath.x86_64 5.3.3-5.el5 base
php53u-bcmath.x86_64 5.3.10-2.ius.el5 ius
php54-bcmath.x86_64 5.4.0-6.ius.el5 ius-testing
Note that you will need to get all php packages from the same source, so consider what else you need, and carefully consider the comments on the forum and the [url=]Repositories[/url] page before proceeding. Atomic is one I would not consider unless none of the others will work for your needs.

Post Reply

Return to “CentOS 5 - Webhosting Support”