LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   yum update PHP on CentOS - missing dependency php-common (https://www.linuxquestions.org/questions/linux-server-73/yum-update-php-on-centos-missing-dependency-php-common-741742/)

AndyMillne 07-21-2009 12:48 PM

yum update PHP on CentOS - missing dependency php-common
 
I am trying to update PHP on a centos server by using

Code:

yum update php
which results in the following...

Code:

Setting up Update Process
Setting up repositories
plesk                    100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.9-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-odbc
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-snmp
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-imap
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-xmlrpc
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-devel
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-ncurses
--> Processing Dependency: php-cli = 5.2.9-2.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-ldap
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-pear
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-domxml
--> Processing Dependency: /usr/bin/php for package: psa-horde
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-ldap.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-mysql.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-xml.i386 0:5.2.9-1.el4.art set to be updated
---> Package php-xmlrpc.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-snmp.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-ncurses.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-gd.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-devel.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-cli.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-imap.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-odbc.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-mbstring.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-pear.noarch 1:1.7.2-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: libt1.so.5 for package: php-gd
--> Processing Dependency: php-pdo for package: php-odbc
--> Processing Dependency: php-common = 5.2.9-1.el4.art for package: php-xml
--> Processing Dependency: automake for package: php-devel
--> Processing Dependency: autoconf for package: php-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package automake.noarch 0:1.9.2-3 set to be updated
---> Package autoconf.noarch 0:2.59-5 set to be updated
---> Package t1lib.i386 0:5.1.2-2.el4.art set to be updated
---> Package php-pdo.i386 0:5.2.9-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.9-1.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php-common = 5.2.9-1.el4.art is needed by package php-xml

I think PHP was previously updated using the centosplus repository which may be causing this problem.

yum install php-common results in a nothing to do error.

I would be grateful if anybody could help me resolve this and get updated to 5.2.x

Thanks in advance for any help

- Andy

andycol 07-21-2009 02:30 PM

you can try download the php-common rpm?
or do a yum remove php then confirm its gone with rpm -q and then you can reinstall with yum install php

AndyMillne 07-21-2009 04:02 PM

I'm not entirely sure where to get the rpm from as after a little investigation php-common 5.2.9-1.el4.art seems to be from the atomic rocket turtle repository and appears to be already installed.

If I run yum remove php am I likely to cause any other knock on problems with configuration etc? I don't want to lose the php-gd php-mysql etc as these are also needed by the forum software I'm trying to run on the server.

scsa20 07-21-2009 04:19 PM

When I was upgrading my PHP on my CentOS 5 server was that I ran the following command:

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
yum upgrade php


if running those 2 commands doesn't work, you can always try to run yum install php-common and see if you can install the common package

AndyMillne 07-21-2009 04:48 PM

thanks scsa20, as it turns out those are the exact commands I ran. Unfortunately I think the fact that a previous upgrade of PHP used the Centosplus repository has thrown things off a bit. yum-install php-common reports nothing to do as it oddly seems to be already installed.

scsa20 07-21-2009 05:00 PM

Why not try yum reinstall php or even try to force it to reinstall the common package again with yum reinstall php-common? (Just trying to think of some ways to get it working for ya without going through the route of uninstalling things)

AndyMillne 07-21-2009 05:10 PM

thanks for those suggestions. I have submitted a ticket with my host to see if my support covers PHP upgrades as I don't want to make unneccessary issues for myself if it can be helped. If not I'll let you know how I get on.

ShiiTake * 05-21-2013 06:34 AM

Thnaks !!!!
 
@scasa20

I know this topic is quite old, but I had to register to thank him. I've been trying for hours to solve the problem by installing various repo's but nothing worked.

After following your instruction everything now works 100%.

Thank You


All times are GMT -5. The time now is 07:15 PM.