Page 1 of 2
PHP 5.2.2 missing dependencies php-xml
Posted: Fri Jun 29, 2007 2:05 pm
by cauw
I'm using a Centos 4.4 release with Plesk 8.1.1 and followed the install as described on atomic and get the following error, has anyone an idea how to solve this?
Code: Select all
[root@frodo yum.repos.d]# yum install php-pear
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pear.noarch 1:1.5.0-5.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php >= 5.1.0-1 for package: php-pear
--> Processing Dependency: php-cli for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.3-1.el4.art set to be updated
---> Package php-cli.i386 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.4 for package: php-gd
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.4 for package: php-mbstring
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-cli
--> Processing Dependency: php = 4.3.9-3.22.4 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.4 for package: php-mysql
--> Processing Dependency: php = 4.3.9-3.22.4 for package: php-imap
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-mysql.i386 0:5.2.3-1.el4.art set to be updated
---> Package php-mbstring.i386 0:5.2.3-1.el4.art set to be updated
---> Package php-common.i386 0:5.2.3-1.el4.art set to be updated
---> Package php-gd.i386 0:5.2.3-1.el4.art set to be updated
---> Package php-imap.i386 0:5.2.3-1.el4.art set to be updated
---> Package php-xml.i386 0:5.2.2-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: php-common = 5.2.2-2.el4.art for package: php-xml
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-pdo.i386 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.2-2.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php-common = 5.2.2-2.el4.art is needed by package php-xml
Thx
Posted: Sun Jul 08, 2007 7:47 am
by cauw
yesterday i've done just the same as before and i don't know why but everything worked fine without any changes... So problem is solved!
Posted: Mon Aug 27, 2007 4:15 am
by LiFeleSs
I have the same problem:
Error: Missing Dependency: php-common = 5.2.3-2.el4.art is needed by package php-xml
from the last repository upgrade, i manualy tried to install php-common and available version is php-common-5.2.3-3 and it's not signed, probabily ones whom alredy had php 5.2.x alredy had php-common-5.2.3-2 and so have upgraded whitout problem but whom have php < 5 is still having problems ...
Posted: Tue Aug 28, 2007 4:52 am
by LiFeleSs
scott update to 5.2.3-4.el4 fixed that !
Posted: Mon Sep 10, 2007 8:12 am
by hiddenidentity
I had the same troubles trying to install PHP 5.2.3 on a fresh Plesk 8.2.0 box.
I managed to dodge a bullet by doing the following:
- yum install php-common-5.2.3-2.el4.art
- yum install php-xml
- yum upgrade php
So force php-common 5.2.3-2, install of php-xml brings it up to 5.2.3-4, and then "yum upgrade php" works fine.
Posted: Thu Sep 13, 2007 11:49 am
by vervecreations
Ok, I'm trying to install php-common first (so I can get everything else to install). When I try to use yum install php-common I get the following
Installing:
php-common x86_64 5.2.3-2.el4.art atomic 309 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 309 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): php-common-5.2.3-2 100% |=========================| 309 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Check Error: file /etc/php.ini from install of php-common-5.2.3-2.el4.art conflicts with file from package php-4.3.9-3.22.5
Is there anyway to tell it to ignore the file conflict? Thanks all.
Posted: Wed Oct 03, 2007 11:05 am
by Sigmus
I'm experiencing exactly the same problem at the moment. Does anyone have an idea how to prevent the Transaction check error or knows another method tp bypass the php-common dependency problem?
Since this is my first post here, I'd like to introduce myself and the reason why I registered:
I'm Sigmus, from Germany. I created a website with a rudimentary CMS for the band of a friend of mine. Two days ago, the site was complete and ready to be moved to his server. He gave me all the login-data I needed and I transferred the page contents. Everything worked fine, except one thing: The server couldn't write to XML files because all PHP versions older than 5.2 crash when using SimpleXML's addChild() function. This killed my CMS, as you can imagine. No guestbook-entries or news-updates would've been possible that way. So I decided to find a way to upgrade the current PHP version and found this nice place here.
I'm a complete Linux-Newbie, but I managed to install the ART stuff on my server. It's a x86_64 machine, I just switched OS from open SuSE 10 to CentOS 4.4 to be able to use the service provided here. My Plesk version is 8.1.1. Before I changed the OS, I could at least use PHP 5.1, but now I'm stuck with PHP4 and the whole website is completely broken.
So I wanted to upgrade to the latest PHP version asap, using the means provided here and experienced the usual problems, i.e. two depency errors, one regarding php-pear which seems to need php4 and the one mentioned above, the php-common dependency. I found a fix for the first issue on these forums but it can't be applied because the second issue prevents the fix from processing correctly.
So, I really, really need a fix for this problem so that I may apply the fix for the other error subsequently and can then finally fix the whole php issue altogether.
Greetings,
Sigmus
Posted: Wed Oct 03, 2007 11:36 am
by scott
sure check the wiki, it should be covered there
Posted: Wed Oct 03, 2007 12:50 pm
by Sigmus
Been there, done that, didn't help. It seems it just covers the basic installation process but doesn't adress many known errors that might occur during it. I couldn't find any article adressing those specific errors there. The PHP article is a nice installation instruction, but useless from the point on when the errors occur (happens while performing the wiki article's step 2).
Therefore, I'm still stuck at that transaction check thing. It indicates a conflict between the two php.ini files of the different php versions. I don't know if it's too risky to delete/rename the old php.ini to prevent that error from ocurring. Might break the whole thing altogether. So there has to be another way, but I have absolutely no clue.
Posted: Wed Oct 03, 2007 9:04 pm
by mary
I'm getting similar errors, and no amount of head-scratching or wiki-reading has resolved them. The issue looks to be that version 5.2.3-4.el4.art does not exist for all modules. For example, yum update php-common gives:
Code: Select all
Error: Missing Dependency: php-common = 5.2.2-2.el4.art is needed by package php-gd
Error: Missing Dependency: php-common = 5.2.2-2.el4.art is needed by package php-mysql
Error: Missing Dependency: php-common = 5.2.2-2.el4.art is needed by package php-imap
Error: Missing Dependency: php-common = 5.2.2-2.el4.art is needed by package php-ldap
Error: Missing Dependency: php-common = 5.2.2-2.el4.art is needed by package php-mbstring
Error: Missing Dependency: php-common = 5.2.2-2.el4.art is needed by package php
Error: Missing Dependency: php-cli = 5.2.2-2.el4.art is needed by package php
A "yum list php-gd", for example, does not turn up a package in the atomic (Centos4, x64) archive.
Posted: Thu Oct 04, 2007 7:54 am
by scott
So you're on centos4, but what version of php is installed currently? If you're not seeing php-gd from yum list then its possible you've mangled your yum config. You should see two:
[root@www ~]# yum list |grep php-gd
php-gd.i386 5.2.3-4.el4.art installed
php-gd.i386 4.3.9-3.22.9 update
One from atomic and one from centos. Of the 2 systems I've looked at with issue reported in this thread so far has had some kind of problem with the yum config.
Posted: Thu Oct 04, 2007 9:49 am
by Sigmus
Thanks for the reply, scott.
Looks like my installed php version is different indeed. That's what it looks like for me:
Code: Select all
yum list |grep php-gd
php-gd.x86_64 4.3.9-3.22.4 installed
php-gd.x86_64 5.2.3-4.el4.art atomic
So, apparently my server has v 4.3.9-3.22.4 instead of ...22.9.
Btw, the dependency-error also points to that version:
Code: Select all
Error: Missing Dependency: php = 4.3.9-3.22.9 is needed by package php-pear
Error: Missing Dependency: php-common = 5.2.3-3.el4.art is needed by package php-xml
Looks like I'd need to update my php version to ...22.9 before applying the current ART update. But how?
And what about that php-common dependency? That one seems to require an older version of the art package that doesn't seem to be included with the current release. I tried to wget the 5.2.3-3.el4.art package separately, but the process was cancelled with the message that this package wouldn't be signed...
Posted: Thu Oct 04, 2007 10:00 am
by scott
Forget what yum is telling you in this case. Its a conflict, but it doesnt mean what it says it does.
What happens when you try to upgrade or install php-pear. IE, yum install php-pear or yum update php-pear
Posted: Thu Oct 04, 2007 12:10 pm
by Sigmus
I just did the following:
I logged in at my server provider and initiated another automated CentOS reinstall. After that, I logged in via Putty and entered "yum install php" without configuring the art repositories beforehand. So, it picked all updates from the centos repository and php went from 4.3.9-3.22.4 to 4.3.9-3.22.9. After that, I followed the steps from the wiki once more. The php-4.3.9-3.22.9 dependency was gone, as I expected. Sadly, my other expectation came true as well:
yum install php-pear
...
Error: Missing Dependency: php-common = 5.2.3-3.el4.art is needed by package php-xml
Is that file missing in the art repository or something? Or some typo in the yum-configuration code that leads yum to believe it'd need 5.2.3-3 instead of 5.2.3-4? And if none of that is the problem: Is there some way to manually override this specific dependency-check?
Oh, and to answer your question:
"yum install php-pear": see above. If I try to type in "yum update php-pear" instead, it tells me that there are no files marked for updating.
Posted: Thu Oct 04, 2007 2:03 pm
by scott
No, that file has never existed on any platform. Its an internal setting, and it exists on both packages, its just that you have something that says I have to have version X. This has to do with the design of php 4 conflicting with the design of php 5. This is actually a fairly substantial change to the system, and the reason why you dont see php 5 popping up in the centos [updates] channel.
At this point my guess is that youve got something else installed on the system with php 4 as a dependency, and that is where the error is really coming from. Catch me on IM, this cant be debugged in a forum. Youve got something weird installed.