LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2005, 08:29 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
/usr/local/lib not searched for shared objects in Redhat/Fedora?


I often get compiler errors since the shared objects in /usr/local/lib cannot be seen. Does anyone know why Redhat/Fedora performs that way? Is it a bug?

What's the best way to fix this without screwing up my system? Is it okay to add /usr/local/lib to ld.so.conf? Or when I install those libraries should I override the default installation directory and change it to /usr/lib? Or is there a better solution? Thanks!
 
Old 09-22-2005, 11:28 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You can add the path to /etc/ld.so.conf and then rerun ldconfig. An alternative if you're worried is to simply add /usr/local/lib to your LD_LIBRARY_PATH environment variable. That will only affect your user, though (and just your current session, unless you set it in your shell startup files).
 
Old 09-23-2005, 12:44 AM   #3
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
From the "Library HOWTO":
Quote:
Many Red Hat-derived distributions don't normally include /usr/local/lib in the file /etc/ld.so.conf. I consider this a bug, and adding /usr/local/lib to /etc/ld.so.conf is a common ``fix'' required to run many programs on Red Hat-derived systems.
http://www.tldp.org/HOWTO/Program-Li...libraries.html
 
  


Reply



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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
including usr/local/lib directory Quest101 Linux - Software 3 01-01-2005 04:13 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
/usr/lib and /usr/local/lib doxxan Slackware 5 06-15-2004 12:58 AM
no php.ini file under /usr/local/lib/ !! jogurt666 Linux - Software 1 12-16-2003 12:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:46 PM.

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