LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-10-2006, 01:27 PM   #1
sporty
LQ Newbie
 
Registered: Oct 2005
Location: Austin, Tx
Posts: 18

Rep: Reputation: 0
How to find needed library files


I just installed FC5 and since pine is not supplied with the package I d/l the source code to install it.
There are several library files needed that are not on fc5 and I have been running around finding and installing them one at a time.
My question is - is there a way to find a package containing all the necessary library files for a program. I know which files I still need but I sure would like a better way to do this kind of work.

If I understand the ldd command correctly it will show all the required library files needed by a program. If this is correct then the library files needed by pine are

[root@alpha pine]# ldd /usr/bin/pine
Code:
 linux-gate.so.1 =>  (0x00820000)
        libldap.so.2 => /usr/lib/libldap.so.2 (0x00cb8000)
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x0092e000)
        libpam.so.0 => /lib/libpam.so.0 (0x00505000)
        libdl.so.2 => /lib/libdl.so.2 (0x00b63000)
        libssl.so.4 => /lib/libssl.so.4 (0x00a51000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x00195000)
        libc.so.6 => /lib/libc.so.6 (0x002b3000)
        libsasl.so.7 => not found
        libkrb4.so.2 => /usr/lib/libkrb4.so.2 (0x0041b000)
        libdes425.so.3 => /usr/lib/libdes425.so.3 (0x00405000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00439000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00111000)
        libcom_err.so.3 => not found
        libssl.so.1 => not found
        libcrypto.so.1 => not found
        libaudit.so.0 => /lib/libaudit.so.0 (0x00136000)
        /lib/ld-linux.so.2 (0x0017a000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00147000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00160000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00163000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00b69000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00176000)
Is there a way to find all of these libs in one file?
 
Old 04-10-2006, 01:52 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 64
I am not answering the question about the libraries, but I was wondering why do you don't try with the pre-compiled pine package ? Just use yum to do that: "yum install pine". In my system, yum detected a missing lib "libc-client2004g" and it was happy to install it too.

May be you just need to enable/install the "livna" repository. Just create the file "/etc/yum.repos.d/livna.repo" with the following contents:
Code:
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=
        http://rpm.livna.org/fedora/$releasever/$basearch/
        http://livna.cat.pdx.edu/fedora/$releasever/$basearch/
        http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/
        http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-5
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

[livna-debuginfo]
name=Livna for Fedora Core $releasever - $basearch - Debug
baseurl=
        http://rpm.livna.org/fedora/$releasever/$basearch/debug/
        http://livna.cat.pdx.edu/fedora/$releasever/$basearch/debug/
        http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/debug/
        http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/debug/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1

[livna-source]
name=Livna for Fedora Core $releasever - $basearch - Source
baseurl=
        http://rpm.livna.org/fedora/$releasever/SRPMS/
        http://livna.cat.pdx.edu/fedora/$releasever/SRPMS/
        http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/SRPMS/
        http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/SRPMS/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1
I hope this helps,
 
Old 04-10-2006, 02:23 PM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 64
PS: The right way to install livna repository is by "rpm -ihv http://rpm.livna.org/fedora/5/i386/livna-release-5-4.noarch.rpm".

sorry any inconvenience,
 
Old 04-12-2006, 12:06 AM   #4
sporty
LQ Newbie
 
Registered: Oct 2005
Location: Austin, Tx
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marozsas
PS: The right way to install livna repository is by "rpm -ihv http://rpm.livna.org/fedora/5/i386/livna-release-5-4.noarch.rpm".

sorry any inconvenience,
I installed the livinia repository and got pine installed without any problems.
Thanks for the information.

I would still like an answer to my original question concerning libraries if anyone can clue me in.

Thanks
 
Old 04-12-2006, 12:14 AM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
Back in my Fedora days, I used pbone.net for that sort of thing.

Had almost forgotten what it's like to be missing dependencies.
 
Old 04-12-2006, 07:15 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 64
similar to pbone.net is www.rpmfind.net. You can search for a file name like libsasl.so.7.
 
Old 04-12-2006, 01:24 PM   #7
sporty
LQ Newbie
 
Registered: Oct 2005
Location: Austin, Tx
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marozsas
similar to pbone.net is www.rpmfind.net. You can search for a file name like libsasl.so.7.

Yeah, not a problem using rpmfind but my question is - Is there a way to find all the needed files in one library file? I guess I am wondering if the creator would pick an existing library with all the needed files included or if he would have to pick and choose each individual file? I simply dont know enough about how library files are created to understand this.

Thanks
 
Old 04-12-2006, 01:55 PM   #8
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 64
No, I'm afraid there is not a easy way to deal with this. You really need to go through the try and fix process. This is even true to a package in rpm format. Before package managers like yum, you still have to try install a package and if any dependencies is missing you need to resolve it by yourself.

Packages installed from source, like you are trying to compile, are even more difficult to get it to work. You really need to know from the developer what are the dependencies his software has. That is why, btw, advanced package managers come to the light.
 
Old 04-12-2006, 03:03 PM   #9
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by sporty
I would still like an answer to my original question concerning libraries if anyone can clue me in.
Not all of the libraries linked to the app are required. For example, I run Mozilla Firefox 1.5.0.1 on my Linux system at home and when I run ldd against firefox-bin, I get messages about libraries not being found yet Firefox runs just fine.

The only libraries you need to worry about are ones identified when you try to run the app which prevent the app from starting. Once those are identified, install them and try again. This can be an iterative process.

Peace...
 
Old 04-12-2006, 04:23 PM   #10
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
Google and yum are great ways to start. You can also install Synaptic on Fedora if you wanted.
 
  


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
Cannot find C Header files in SuSE 9.2 64-bit when needed for installing VMware W/s matt010wjh Linux - Software 1 12-26-2004 10:25 PM
Trying to install PyKDE, can't find files needed Matt.Ramos Slackware 9 07-15-2004 11:07 AM
major system & library help needed! synaptical Slackware 13 04-27-2004 03:58 PM
Library Application Needed kmadhukar Linux - Software 1 05-05-2003 04:49 AM
compile..can't find library files doublefailure Linux - General 3 12-03-2002 03:11 AM


All times are GMT -5. The time now is 08:02 AM.

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