Help needed installing PHP-mhash

Issues related to software problems.

Help needed installing PHP-mhash

Postby rvegasna » 2012/03/21 16:27:05

Hi

I am a new guy, I don't know much about CentOS(5.6).

I 've my PHP5.3.3 installed on apache 2.2.

Now, I am trying to install mhash , But I am not Successful.

Can any one help on how to do a mhash installations.

I was getting this error when trying to yum install mhash


yum install php-mhash
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: dist1.800hosting.com
* extras: dist1.800hosting.com
* updates: dist1.800hosting.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mhash.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mhash
--> Processing Dependency: php >= 5.1.6 for package: php-mhash
--> Processing Dependency: libmhash.so.2()(64bit) for package: php-mhash
--> Running transaction check
---> Package mhash.x86_64 0:0.9.9-1.el5.centos set to be updated
---> Package php.x86_64 0:5.1.6-32.el5 set to be updated
--> Processing Dependency: php-cli = 5.1.6-32.el5 for package: php
---> Package php-common.x86_64 0:5.1.6-32.el5 set to be updated
--> Running transaction check
---> Package php-cli.x86_64 0:5.1.6-32.el5 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-5.el5.x86_64 from installed has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.


Can any one help me on this...

Thanks ...
rvegasna
 
Posts: 3
Joined: 2012/03/20 18:59:07

Help needed installing PHP-mhash

Postby pschaff » 2012/03/21 23:48:46

Don't use obsolete/unsupported releases - 5.8 is the current release. See the CentOS 5.8 Release Notes for details. By not updating you are implicitly accepting that you will live with numerous bugs and security issues (and associated known exploits) that have subsequently been fixed.

I don't see any php-mhash packages for php 5.3 anywhere. The 5.1 version you are trying to install is incompatible.

You could try following How to Rebuild a Source RPM to build a compatible version, but as there is not even one around for CentOS-6 there may be a serious problem that precludes using it.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Help needed installing PHP-mhash

Postby vanecka » 2012/04/18 17:49:43

The PHP you are currently using is version 5.3. PHP 5.3 has hash support in the core package (see http://php.net/releases/5_3_0.php), thus there is no php53-mhash to be installed.
When you execute "yum install php-mhash" yum is trying to install the mhash package for PHP 5.1. You'll have to change your PHP code
to use hash (see http://php.net/hash) or you'll have to downgrade your PHP to version 5.1.
vanecka
 
Posts: 27
Joined: 2010/01/28 21:05:11
Location: University of the Free State - South Africa


Return to CentOS 5 - Software Support

Who is online

Users browsing this forum: No registered users and 3 guests