Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Misc
Reload this Page Unable to find libraries
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Misc Any questions or Linux discussion that does not fit in any of the other technical areas.

Reply
 
Thread Tools Display Modes
Old 01-27-2008   #1 (permalink)
Just Joined!
 
Join Date: Jan 2008
Location: New England
Posts: 6
Unable to find libraries

This should be a really simple problem to fix, but I can't seem to figure it out.

When I compile libraries, for example giblib, they install to /usr/local/lib/
Unfortunately, when I try to compile programs which rely on those libraries, they seem unable to recognize that they exist.

My current solution has been to simply copy the libraries from /usr/local/lib to /lib/ by hand, but that is a rather stupid solution, and there must be a better way, right?

Help would be appreciated.
Thanks in advance.
desheret is offline   Reply With Quote
Old 01-27-2008   #2 (permalink)
Trusted Penguin
 
daark.child's Avatar
 
Join Date: Apr 2006
Location: South Yorks, UK
Posts: 3,517
You can compile libraries into /usr/lib by doing
Code:
./configure --prefix=/usr
If the libraries are already in /usr/local/lib, you can do
Code:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
before you ./configure a package.
daark.child is offline   Reply With Quote
Old 01-27-2008   #3 (permalink)
Linux Engineer
 
Join Date: Nov 2004
Posts: 785
Add /usr/local/lib to /etc/ld.so.conf
Ensure that the above command with PKG_CONFIG_PATH is run in .profile or .bashrc or something
You may have to run ldconfig sometimes if a lib isn't recognized right away
valan is offline   Reply With Quote
Old 01-27-2008   #4 (permalink)
Just Joined!
 
Join Date: Jan 2008
Location: New England
Posts: 6
Adding it to PKG_CONFIG_PATH worked perfectly.

Thanks!
desheret is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to find man pages for system calls on Mandriva LE 2005. haranath.t Mandriva Linux Help 0 12-23-2005 08:19 AM
2.6 kernel under slackware 10.1 questions Weedman The Linux Kernel 3 11-16-2005 10:34 AM
Xandros: apt-get error [0cc]Vince Debian Linux Help 2 10-14-2005 08:07 AM
gtk can't find libraries? chickens_are_good Linux Programming & Scripting 2 04-27-2005 11:43 AM
NIC problem with SuSE 8.2 flw Installation 0 09-24-2003 05:37 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 05:15 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0