Link to home
Start Free TrialLog in
Avatar of adamjimenez
adamjimenez

asked on

Yum dependency problem with php under fedora

when i try to do:
yum update yum

i get the following errors:

Error: missing dep: php for pkg php-pear
Error: missing dep: php for pkg php-domxml
Error: missing dep: httpd-suexec for pkg psa

i find this odd as I have tried reinstalling the rpms for those packages and they are all  installed

I am on FC3 but I upgraded the core to FC5 altho most of the packages are still FC3.

I also have plesk installed.

How can I resolve this dependency hell?
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Plesk has it's own versions of most things, and if you decide to use Plesk, then you have to live by the Plesk updates.

Also php, php-pear, and php-domxml are a matching set:

php-pear-5.0.4-10.5
php-xml-5.0.4-10.5
php-5.0.4-10.5

which is tied in to the following rpms that are also used by Plesk:

php-imap-5.0.4-10.5
psa-php5-configurator-1.0.0-fc4.build80060331.13
php-5.0.4-10.5
php-mbstring-5.0.4-10.5
php-pear-5.0.4-10.5
php-mysql-5.0.4-10.5
php-gd-5.0.4-10.5
php-xml-5.0.4-10.5

This is from  a working Plesk 8 FC5 setup (although FC4 appears in the names of 2 of the packages)

Therefore you need to upgrade *ALL* of the above rpms together!..PLUS bear in mind the psa pkg:

rpm -qa | grep psa

to see how pervasive it is!

The best bet that I use when I reach this type of 'impasse' is to stick ALL of the rpms that I wish to upgrade to into one folder, cd into that folder. and type:

rpm -ivh *.rpm

I then keep adding more rpms to the folder until it works!

Messy, but it's solved this type of problem for me before. Your main problem is going to be the Plesk aspect - you may end up having to upgrade:(

(   (()
(`-' _\
 ''  ''





 
Avatar of adamjimenez
adamjimenez

ASKER

the reason i am trying to do this is so that i can upgrade plesk from 7.5.4 to plesk 8

but when i do the plesk update i get the error:
ERROR: Impossible do installation while package rpm-python-4.3.2-21.i386 is installed in system

so i figured that i needed to update the system before i could update plesk
can you:

rpm -e rpm-python

If so, then retry the Plesk update. If not, please post output.

(   (()
(`-' _\
 ''  ''
error: Failed dependencies:
        rpm-python is needed by (installed) yum-2.1.11-3.noarch

i could do 'yum remove python'

isn't it a fundamental system component tho?
You've got to be a littel careful here as removing python stops yum working correctly, and then you have to do all the work with rpm until you repair it.

I'm assuming that the Plesk update comes as an rpm?

Stick that rpm in a directory, and then run the command:

rpm -Uvh *.rpm

You will get dependency issues. Add the appropriate rpms to the directory, and keep repeating. This will take some time, and may require as many as 20 rpms. (My update took 18!)

Let us know how it goes.

(   (()
(`-' _\
 ''  ''
Thanks for getting back to me.

Plesk comes with rpms all over the place. I'm trying to use the command line plesk updater.

Its saying:

ERROR: Impossible do installation while package rpm-build-4.3.2-21.i386 is installed in system
ERROR: Installation failed

If i remove rpm-build will i still be able to install / remove rpms?

My fear is that I will remove it and it will complain about something else.
i went for it and now its complaining about rpm-4.3.2-21.i386!

Is there any way back if I remove it?
ASKER CERTIFIED SOLUTION
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
u can guess what happened next!

plesk went further thru the install process, downloaded all the rpms and of course couldnt install them!

i reinstalled rpm from the backup.

and then sussed the problem.

the problems were all due to my botched upgrade of fedora

i edited /etc/redhat-release and changed the FC4 to FC3.

The plesk install then worked fine!

Thanks for your help and persistance.

Altho it was a very simple fix in the end, your help has taught me a lot about rpms.