yum update PHP on CentOS - missing dependency php-common

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
AndyMillne
Posts: 1
Joined: 2009/07/21 18:48:33

yum update PHP on CentOS - missing dependency php-common

Post by AndyMillne » 2009/07/21 18:54:45

I am trying to update PHP on a centos server by using

[b]yum update php[/b]

which results in the following...

---------------------

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

pjwelsh
Posts: 2598
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: yum update PHP on CentOS - missing dependency php-common

Post by pjwelsh » 2009/07/22 15:54:39

You seem to have setup third party repos on that system. Please make sure that you have thoroughly read the http://wiki.centos.org/AdditionalResources/Repositories and the "Priorities" http://wiki.centos.org/PackageManagement/Yum/Priorities
You may be in kinda a limbo depending on what you have installed... :-o

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

yum update PHP on CentOS - missing dependency php-common

Post by pschaff » 2009/07/26 11:45:34

+1 to PJ's advice. Don't see any indication that you currently have centosplus enabled, If you are using CentOSplus it should be enabled for updates.

Post Reply

Return to “CentOS 4 - Server Support”