CentOS 5: How to resolve php53 RPM dependency conflict with php-foo and php-common?
We are running a CentOS 5.6 system, and want to install php53 with php-mcrypt.
However, this introduces a dependency conflict between php-common & php53-common. Does anyone have a good workaround for this problem?
host # yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: linux.mirrors.es.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Processing Dependency: php >= 5.1.6 for package: php-mcrypt
--> Running transaction check
---> Package php.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-cli = 5.1.6-27.el5_5.3 for package: php
---> Package php-common.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Running transaction check
---> Package php-cli.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-1.el5_6.1.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
This is apparently a known problem (See php-devel, Bug 700179 and Bug 695708) and this post at the CentOS forums, but there is no official fix yet.
Solution 1:
Work-around: Use iuscommunity ( http://iuscommunity.org/ ) and install php53u-mcrypt.
In general, you will install packages with named of the form php53u-foo.
Solution 2:
IT is very late but as I came via a search other people might find the following helpful. Had the same trouble described above. Problem was that I tried to run
yum install php-gd
this threw the error above
yum install php53-gd
did not as this belongs to installed php package's installed.
you could find all available packages via
yum search php53
cheers!
Solution 3:
safer to uninstall php and all php-xxx package before installing php53