LinuxQuestions.org
Help answer threads with 0 replies.
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 10-16-2004, 08:44 AM   #1
TwineSatchel
LQ Newbie
 
Registered: Oct 2004
Location: Nashua, NH
Distribution: Fedora Core 2
Posts: 2

Rep: Reputation: 0
Question 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.
 
Old 10-16-2004, 08:52 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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
 
Old 10-16-2004, 12:34 PM   #3
TwineSatchel
LQ Newbie
 
Registered: Oct 2004
Location: Nashua, NH
Distribution: Fedora Core 2
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 10-16-2004, 12:57 PM   #4
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
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.
 
Old 10-16-2004, 03:00 PM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
When you say the libraries cannot be found, what is the error message you get? Copy and paste an example for us please.
 
Old 10-16-2004, 07:47 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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)
 
  


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
'Wine libraries will not be found!' thevdo Linux - Software 1 01-02-2005 08:26 PM
Simple C Libraries Not Found brunnopessoa Linux - General 1 08-28-2004 11:26 AM
X11 libraries not found dannymacom Linux - Software 6 02-22-2004 07:31 PM
Libraries not found (but they're definitely there) Gameon Linux - Software 3 08-17-2002 04:38 PM
Quake 2: Libraries not found tarballedtux Linux - Software 2 07-19-2002 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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