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.
|
|
10-16-2004, 08:44 AM
|
#1
|
LQ Newbie
Registered: Oct 2004
Location: Nashua, NH
Distribution: Fedora Core 2
Posts: 2
Rep:
|
Libraries not found after compiling software.
Okay. So i just installed linux (Fedora core 2) and had a few pieces of software that i could not find an rpm for. So i was left with no option but to compile the software from source using the following commands to configure and install.
./configure
make
make install
After doing this, everything seemed to install okay but after trying to compile different software that depended on the libraries that i had just compiled, it was impossible to generate a makefile. I was told that the libraries that i had just compiled could not be found. The libraries are compiled and on my hard drive but for some reason the configure command can't find them in order to generate a makefile. Am i doing something wrong? Is there a command that i need to type in order for configure to find these libraries that i know are on my system? Any help would be greatly appreciated.
|
|
|
10-16-2004, 08:52 AM
|
#2
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Did you compile the libraries or install them?
If you installed new libraries the path to them still needs to be configured. As root, open the file /etc/ld.so.conf in a text editor and add the path to where you installed the libraries.
Then run the command
ldconfig
|
|
|
10-16-2004, 12:34 PM
|
#3
|
LQ Newbie
Registered: Oct 2004
Location: Nashua, NH
Distribution: Fedora Core 2
Posts: 2
Original Poster
Rep:
|
The libraries were compiled by myself and now cannot be found by other programs that depened on them. I'm sure that they are there but just can't be found. They were placed in /usr/local/lib/ at compile time and i think this might be the problem.
|
|
|
10-16-2004, 12:57 PM
|
#4
|
Member
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200
Rep:
|
somewhat simple soution is to run /sbin/ldconfig to update shared library links etc. Then rerun configure. I that does not work then make uninstall and install the libraries where they are most likely to be found by other apps, /usr/lib instead of /usr/local/lib.
To do that run ./configure --prefix=/usr && make install and then they should be found.
|
|
|
10-16-2004, 03:00 PM
|
#5
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
When you say the libraries cannot be found, what is the error message you get? Copy and paste an example for us please.
|
|
|
10-16-2004, 07:47 PM
|
#6
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Quote:
Originally posted by TwineSatchel
The libraries were compiled by myself and now cannot be found by other programs that depened on them. I'm sure that they are there but just can't be found. They were placed in /usr/local/lib/ at compile time and i think this might be the problem.
|
That is what I was referring to in my previous post. In /etc/ld.so.conf put in the line
/usr/local/lib
and then run the command
ldconfig
(all as root)
|
|
|
All times are GMT -5. The time now is 06:03 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
|
|