LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-30-2003, 09:13 AM   #1
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
rpm failed dependencies


# rpm -Uvh *.rpm
error: failed dependencies:
libbz2.so.0 is needed by rpm-4.0.5-1.6x
libbz2.so.0 is needed by rpm-build-4.0.5-1.6x
libbz2.so.0 is needed by rpm-devel-4.0.5-1.6x
libbz2.so.0 is needed by rpm-python-4.0.5-1.6x
# ls
bzip2-1.0.2-2.i386.rpm popt-1.6.5-1.6x.i386.rpm rpm-4.0.5-1.6x.i386.rpm rpm-build-4.0.5-1.6x.i386.rpm rpm-devel-4.0.5-1.6x.i386.rpm rpm-python-4.0.5-1.6x.i386.rpm
#






ok obviously i'm having failed dependencies problems. the only way i know to fix the above problems is to install what is needed by the rpm's. however you will notice in the listing that bzip2-1.0.2-2.i386.rpm is not only in the listing but it's already installed. (see below)



# rpm -qa | grep bzip
bzip2-devel-1.0.2-2
bzip2-1.0.2-2
bzip2-libs-1.0.2-2


so since it is already installed the rpm's should see it and not say it is needed. however it is not. why is it doing this? how do i fix the failed dependencies?

Last edited by wedgeworth; 12-30-2003 at 09:14 AM.
 
Old 12-30-2003, 09:48 AM   #2
Mugatu
Member
 
Registered: Dec 2003
Location: VA
Distribution: Ubuntu
Posts: 193

Rep: Reputation: 30
i'm not sure if this will help or not, but do a

find / -iname libbz2.so.0

and make sure the directory that the library is in is included in /etc/ld.so.conf

or maybe you need to upgrade bzip2?? what distro are you using? i'm using Mandrake 9.2 and Slackware 9.1, and even though both have bzip2 installed, neither one of them have this exact library. this might help:

http://rpmfind.net/linux/rpm2html/se...&system=&arch=

or maybe search for libbz2.so.0 at

http://rpm.pbone.net
 
Old 12-30-2003, 10:49 AM   #3
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
here's the output i got from etc:
# less /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
#

----------------------------------------
and make sure the directory that the library is in is included in /etc/ld.so.conf
-----------------------------------------

what exactly am i looking for here?


this seem to do nothing:
# cd /
# find / -iname libbz2.so.0
#


and my servers are running rh 7.3.

--------------------------------------------
or maybe you need to upgrade bzip2??
--------------------------------------------
i'm using bzip2-1.0.2-2.i386.rpm which is for Red Hat Linux 7.3 for i386 accourding to here:
http://rpmfind.net/linux/rpm2html/se...hp?query=bzip2
so i should be ok there since that is what i'm running.

hope this helps. tell me what you think, or if you have any ideas.....
 
Old 12-30-2003, 11:25 AM   #4
Mugatu
Member
 
Registered: Dec 2003
Location: VA
Distribution: Ubuntu
Posts: 193

Rep: Reputation: 30
if find / -iname libbz2.so.0 didn't do anything (you might need to run it as root so it can look through all your directories), then you don't have that library on your computer.

but apparently that's not the problem. the rpm's you are installing end in 6x. Apparently that means they are for Redhat 6.X. Try installing the rpm's that end in 7x instead. For instance:

http://rpm.pbone.net/index.php3?stat...-1.7x.i386.rpm

and it looks like there are even newer versions available for redhat 7.x:

http://rpm.pbone.net/index.php3?stat...-1.7x.i386.rpm

...i'm not sure, but that just might do the trick
 
Old 12-30-2003, 04:55 PM   #5
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok it seems to be working now.



# ls
popt-1.6.5-1.7x.i386.rpm rpm-4.0.5-1.7x.i386.rpm rpm-build-4.0.5-1.7x.i386.rpm rpm-devel-4.0.5-1.7x.i386.rpm rpm-python-4.0.5-1.7x.i386.rpm
# rpm -Uvh *.rpm
Preparing... ########################################### [100%]
1opt ########################################### [ 20%]
2:rpm ########################################### [ 40%]
3:rpm-build ########################################### [ 60%]
4:rpm-devel ########################################### [ 80%]
5:rpm-python ########################################### [100%]
#


thanks, i had to move the bzip file out of the directory and do a "rpm -Uvh *.rpm" to fix all the dependencies. hopefully now i can get my apt-get to start working.



# rpm -qa | grep rpm
rpm-4.0.5-1.7x
rpm-build-4.0.5-1.7x
rpm-python-4.0.5-1.7x
rpmdb-redhat-7.3-0.20020613
rpm-devel-4.0.5-1.7x
#

Last edited by wedgeworth; 12-30-2003 at 05:01 PM.
 
  


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
RPM Failed dependencies louisb Linux - Enterprise 3 01-27-2005 02:58 PM
Failed dependencies in RPM louisb Linux - Enterprise 1 01-12-2005 03:37 AM
Failed dependencies with in RPM louisb Linux - Enterprise 1 01-10-2005 10:42 AM
rpm - failed dependencies jonnycarlos Linux - Software 3 04-15-2004 11:57 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM


All times are GMT -5. The time now is 09:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration