Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-04-2009, 03:23 PM   #1
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
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 stores the following sub directories which are empty both.


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?
Old 04-04-2009, 03:47 PM   #2
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
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:
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.

Last edited by Robhogg; 04-04-2009 at 04:00 PM. Reason: Added quote
Old 04-04-2009, 05:41 PM   #3
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,416
Blog Entries: 1

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


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
error while loading shared libraries: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
error while loading shared libraries: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
error while loading shared libraries: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration