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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-10-2006, 12:27 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Location: Austin, Tx
Posts: 18
Rep:
|
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?
|
|
|
04-10-2006, 12:52 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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,
|
|
|
04-10-2006, 01:23 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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,
|
|
|
04-11-2006, 11:06 PM
|
#4
|
LQ Newbie
Registered: Oct 2005
Location: Austin, Tx
Posts: 18
Original Poster
Rep:
|
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
|
|
|
04-11-2006, 11:14 PM
|
#5
|
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:
|
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.
|
|
|
04-12-2006, 06:15 AM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
similar to pbone.net is www.rpmfind.net. You can search for a file name like libsasl.so.7.
|
|
|
04-12-2006, 12:24 PM
|
#7
|
LQ Newbie
Registered: Oct 2005
Location: Austin, Tx
Posts: 18
Original Poster
Rep:
|
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
|
|
|
04-12-2006, 12:55 PM
|
#8
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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.
|
|
|
04-12-2006, 02:03 PM
|
#9
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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...
|
|
|
04-12-2006, 03:23 PM
|
#10
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Rep:
|
Google and yum are great ways to start. You can also install Synaptic on Fedora if you wanted.
|
|
|
All times are GMT -5. The time now is 06:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|