LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   shared libraries (https://www.linuxquestions.org/questions/debian-26/shared-libraries-716867/)

siawash 04-04-2009 03:23 PM

shared libraries
 
Hi folks, hope you can excuse my ignorance. I am studying some LPI material here and working through the ldconfig utility. I would appreciate if someone could clear up something on this subject.

When I run the ldconfig -p command I get a whole list of share libraries.

However, the directory ld.so.conf.d stores the following sub directories which are empty both.

/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu


Can anyone tell me why they would be empty considering they are supposed to store information about shared libraries. Or am I missing something in my brain?

Robhogg 04-04-2009 03:47 PM

Are you thinking that there should be something specific in those directories?

I've checked, and they are present but empty on my PC as well (running Ubuntu). All the libraries output by ldconfig -p are in /lib or /usr/lib. I'd suggest that they are probably there for "legacy" reasons - just in case some package wants to install shared libraries there.

Edited to add: Just checked in Beginning Linux Programming (4th ed.), which says:
Quote:

Standard system libraries are usually stored in /lib and /usr/lib. (p.10)
It makes no mention that I can see of these other locations.

marozsas 04-04-2009 05:41 PM

Yes, Robhogg seems to be right.
My Fedora 10 64bits does not have those folders at all. Looks like it is there (in the ld.so.config) for libraries for some (obscure, optional, extra) program we haven't installed yet.


All times are GMT -5. The time now is 02:01 PM.