LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2002, 09:27 AM   #1
Micah
Member
 
Registered: Apr 2002
Location: OK, USA
Distribution: Slackware64
Posts: 190

Rep: Reputation: 37
Unhappy Librarys, What Where When Why?


I have been constantly getting errors due to not having libraries for 60% of all apps I try to install...

Is there a way I can find out What Librarys are needed for an app? (The site doesn't list then - not easily anyway (still can't find 'em))

My machine needs several apparently, but I don't know what Libraries to find (or where to find them)?

All help is appreciated - even when I can't spell the word =)
 
Old 07-11-2002, 09:50 AM   #2
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37° 33.327 E 126° 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Rep: Reputation: 31
Hi there.
I find it strange that the dependencies are not on the app's page. Perhaps they will be listed in the files INSTALL or README. I'm not so sure about how to figure out what dependencies a source package needs without them being listed somewhere. (Appart from actually looking in the source )

But I know how to find out what dependecies are missing for a binary file; just use ldd.

For example, lets find out what 'ls' depends on.
cd /bin/
ldd ls
librt.so.1 => /lib/librt.so.1 (0x40026000)
libc.so.6 => /lib/libc.so.6 (0x40038000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4015b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Very handy indeed!
Good Luck!
RefriedBean

PS, remeber, ldd is your friend
 
Old 07-11-2002, 09:53 AM   #3
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
One possible research location is http://rpmfind.net . Inquire on the rpm package, if it's an rpm, and select the description (not the download) link for the distro that's closest to yours. The description link has a "requires" list and a "provides" list.

If it's an rpm, you can also use the "--test" option to show what dependencies may not be satified. There are also other ways of inquiring with the rpm app to find out lots of info about the specific rpm package that you are looking at.

Look for an rpm book, or go to http://www.rpm.org for further info.
 
Old 07-11-2002, 10:23 AM   #4
Micah
Member
 
Registered: Apr 2002
Location: OK, USA
Distribution: Slackware64
Posts: 190

Original Poster
Rep: Reputation: 37
ok... Lets say I use ldd and ls requires '/lib/libpthread.so.0' and I don't have it -> How do I find this on the net to install (I have this of course but its an example)

Also - about RPMs - I haven't yet used one (Haven't gotten to it, I have downloaded everything as sources and compiled myself (most don't offer SRPMs) - I have Slackware and downloaded anything that looks professional and small =) (I got a dial-up connection... no KDE, GNOME, etc...)

When I compile certain apps, they complain that the Libs exist, but it can't test (QT Libs) - How do you test to see what version you have (other than a dir name))?
 
Old 07-11-2002, 10:26 AM   #5
Micah
Member
 
Registered: Apr 2002
Location: OK, USA
Distribution: Slackware64
Posts: 190

Original Poster
Rep: Reputation: 37
A note: I guess I could see if certain packages exist as RPMs and use RPM find to see what it depends on - but what about those that don't exist as RPMs or RPMFind doesn't list dependancies (Have seen one of these...)
 
Old 07-11-2002, 02:37 PM   #6
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
Oops!! Sorry didn't realize you were a Slackware user, Slack prides itself in NOT using rpm . That's O.K., it's just not what I use.
 
Old 07-15-2002, 07:16 PM   #7
Daniel Nichols
LQ Newbie
 
Registered: Feb 2001
Location: Pens, Fl
Distribution: slackware 1.0/2.0 old hardware, Caldera Open Linux 6.0?
Posts: 8

Rep: Reputation: 0
okay, give this discussion the version of Linux you are using and if you have glibc or an older version of libc, if you know it.
Some of the Apps might be for an older version or newer version of linux that requires different library dependencys(sp?).
 
  


Reply



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
Basic Librarys Gonto Linux - Software 1 04-25-2005 07:25 AM
Problem with missing librarys mjl3434 Linux - Newbie 3 02-25-2004 09:33 PM
Trouble finding more librarys mindstormsguy Linux - Software 4 10-19-2003 10:44 AM
Red Hat 8 and QT librarys deigote Linux - Software 2 10-01-2003 12:33 PM
Librarys sir_aelurus Linux - Software 3 04-18-2003 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 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
Open Source Consulting | Domain Registration