LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-11-2006, 10:31 AM   #1
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Rep: Reputation: 15
Question /etc/ld.so.conf - what is it for?


Hi,

Nice newb question for you - what's /etc/ld.so.conf for :P?

Thanks in advance,
James
 
Old 04-11-2006, 10:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

It holds path settings which point to directories that hold (dynamic) libraries. It's used by ldconfig to create necessary links and cache (man ldconfig for details).

Hope this helps.
 
Old 04-11-2006, 10:52 AM   #3
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
...

Hi,

Thanks for your reply.

On a slightly deeper level, what is it's purpose on the system - why is it necessary to do that (I'm being told to do this in the context: 'NB:FastCGI installs to /usr/local/lib, so if it isn’t there already you will need to add /usr/local/lib to /etc/ld.so.conf and run: ').

Thanks,
James
 
Old 04-11-2006, 11:36 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi again,

Programs, when dynamicaly compiled, need libraries to run. In general ld.so.conf holds the basic directories where these libs can be found. Sometimes you have to add another line to that file.

Adding it is just half the step, after you add a new line (and/or remove, change order) you need to run ldconfig. ldconfig in turn creates the links and cache so that ld.so/ld-linux.so* (dynamic linker/loader) can find them.

The above is the 'in a nutshell' version. To get a better understanding read the manpages (ld.so, ldconfig, ldd).

The message about running ldconfig is there to let you know that libs are installed in a 'none default' lib dir. 'None default' is debatable, most of the time the libdir mentioned is already in your ld.so.conf file. It is wise to check anyway and when in doubt: just run ldconfig before you continue.

Hope this helps (a bit more).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I include srm.conf in httpd.conf in apache2? xpucto Linux - Software 3 02-16-2006 08:16 AM
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 04:03 PM
[FC2] How to write a modprobe.conf from a module.conf??? Coume Fedora 0 05-31-2004 03:40 AM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-09-2004 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:11 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