LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-04-2009, 03:23 PM   #1
siawash
Member
 
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 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?
 
Old 04-04-2009, 03:47 PM   #2
Robhogg
Member
 
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:
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.

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

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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