LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-15-2005, 02:30 AM   #1
mike_bio
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
rpm install: A asks for B, B asks for A


I'm new to linux (RH9) and came across the following problem. While compiling php5, I got "libxml2 version 2.5.10 or greater required". I currently have libxml2-2.5.4-1. I downloaded libxml2-2.5.11-0.fdr.2.rh90.i386.rpm. The problem is that when I try to install it (with rpm -i or -U or -F) I get
error: Failed dependencies:
libxml2 = 2.5.4 is needed by (installed) libxml2-python-2.5.4-1
libxml2 = 2.5.4 is needed by (installed) libxml2-devel-2.5.4-1

BUT when I try to install (the same way) libxml2-python-2.5.11-0.fdr.2.rh90.i386.rpm i get "libxml2 = 2.5.11 is needed by libxml2-python-2.5.11-0.fdr.2.rh90" and when I try to install libxml2-devel-2.5.11-0.fdr.2.rh90.i386.rpm I get "libxml2 = 2.5.11 is needed by libxml2-devel-2.5.11-0.fdr.2.rh90".

So, I have a full circle. I suspect the solution to be something very simple, but this is a newbie talking!
 
Old 07-15-2005, 02:44 AM   #2
Neverendingo
Member
 
Registered: Dec 2004
Location: Dortmund, Germany
Distribution: Kubuntu 6.10 Edgy Eft
Posts: 33

Rep: Reputation: 15
Did you try "rpm -Uvh libxml2*.rpm" ?
On my opinion it checks all the dependencies and installs it in the right order.

Greetings,
Ingo
 
Old 07-15-2005, 03:16 AM   #3
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Debian,Ubuntu
Posts: 181

Rep: Reputation: 31
Try first to remove libxml2-python-2.5.4-1 and libxml2-devel-2.5.4-1 and then proceed with the installations of the newer version.
 
Old 07-15-2005, 03:41 AM   #4
mike_bio
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Original Poster
Rep: Reputation: 0
"rpm -Uvh libxml2*.rpm" gives me 6 messages saying "xxxx conflicts between attempted installs of libxml2-2.5.11-0.fdr.2.rh90 and libxml2-2.5.4-3.rh9" and exits.

I cannot just remove (-e) the old packages because others depend on them ("libxml2-python is needed by (installed) redhat-config-packages-1.1.8-1")
 
Old 07-15-2005, 03:46 AM   #5
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Debian,Ubuntu
Posts: 181

Rep: Reputation: 31
Have you tried to upgrade libxml2-python first?
 
Old 07-15-2005, 03:58 AM   #6
mike_bio
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Original Poster
Rep: Reputation: 0
a friend of mine suggested "rpm -Uvh --force --nodeps". It worked! Thank you for your help.
 
Old 07-15-2005, 04:00 AM   #7
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Debian,Ubuntu
Posts: 181

Rep: Reputation: 31
That was the next step i was about to propose, but it might be dangerous (ie.it might corrupt other installed packages which need a specific version).
But if it works ok, that's good!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SUSE 10.0 DVD install asks for CD2 microsvc Suse/Novell 6 10-19-2005 06:07 PM
Fedora Post-Install Asks for Boot Diskette bkinney Fedora - Installation 1 10-08-2005 09:00 PM
Virus or broken system? apt-get install asks to remove kernel image?? rakamaka Linux - Software 6 09-19-2005 09:31 PM
Trying to install RPM asks for CD4..but.... NoS Sr50 Linux - Newbie 3 09-05-2004 11:03 PM
Can't install .rpm--try and asks for program to use... jsykes_2000 Linux - Newbie 4 05-17-2002 11:28 PM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration