LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-21-2009, 12:48 PM   #1
AndyMillne
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Rep: Reputation: 0
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
 
Old 07-21-2009, 02:30 PM   #2
andycol
Member
 
Registered: Jul 2009
Location: South Africa
Posts: 38

Rep: Reputation: 16
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
 
Old 07-21-2009, 04:02 PM   #3
AndyMillne
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.

Last edited by AndyMillne; 07-21-2009 at 04:04 PM.
 
Old 07-21-2009, 04:19 PM   #4
scsa20
LQ Newbie
 
Registered: Jun 2005
Location: Mars
Distribution: openSUSE 10.2
Posts: 8

Rep: Reputation: 0
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
 
Old 07-21-2009, 04:48 PM   #5
AndyMillne
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 07-21-2009, 05:00 PM   #6
scsa20
LQ Newbie
 
Registered: Jun 2005
Location: Mars
Distribution: openSUSE 10.2
Posts: 8

Rep: Reputation: 0
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)
 
Old 07-21-2009, 05:10 PM   #7
AndyMillne
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 05-21-2013, 06:34 AM   #8
ShiiTake *
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
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
 
  


Reply

Tags
centos, php, yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum Won't Update Due To Missing Dependency on New Installation cmnorton Red Hat 2 06-12-2009 10:31 AM
yum install php-imap doesn't work on CentOS? guest Linux - Server 10 04-29-2009 02:39 AM
Yum update fails - Missing Dependency godisadj Fedora 5 01-02-2008 05:44 AM
yum update gives 'Error: Missing Dependency:" on fresh install tightface Linux - Software 4 07-04-2007 02:10 AM
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration