You are not logged in.

#1 2010-02-19 20:21:30

RedScare
Member
Registered: 2009-03-28
Posts: 91

[SOLVED] /etc/ld.so.conf doesn't have standard directories?

I'm not sure about the contents of other peoples' /etc/ld.so.conf, but mine follows:

#
# /etc/ld.so.conf
#

# End of file
/usr/lib/libfakeroot
include /etc/ld.so.conf.d/*.conf

I was wondering how it is possible that all my software still seems to work despite most of the libraries being in /usr/lib/; why isn't /usr/lib/ included in ld.so.conf on Arch?

Thanks.

EDIT: Solution: ldconfig automatically includes /usr/lib

Last edited by RedScare (2010-02-20 04:07:47)

Offline

#2 2010-02-19 21:00:22

ebal
Member
From: Athens, Greece
Registered: 2009-05-26
Posts: 224
Website

Re: [SOLVED] /etc/ld.so.conf doesn't have standard directories?

/lib & /usr/lib are by default the library directories on linux distributions.

/lib is mostly for boot & running linux
/usr/lib is for the software

When you are using pacman or on any other distro any other package manager, libraries should be install on /usr/lib
but if you build something from source then /usr/local/lib is defined.

Take a moment to read this: http://www.pathname.com/fhs/


https://balaskas.gr
Linux System Engineer - Registered Linux User #420129

Offline

#3 2010-02-19 21:01:46

matzo
Member
From: Germany
Registered: 2009-04-13
Posts: 19

Re: [SOLVED] /etc/ld.so.conf doesn't have standard directories?

The following is said in the manpage of 'ldconfig':

ldconfig  creates  the  necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib).

The way I see it, these directories are automatically considered.

Edit: Ups, ebal was faster.

Last edited by matzo (2010-02-19 21:02:52)

Offline

#4 2010-02-19 21:03:41

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: [SOLVED] /etc/ld.so.conf doesn't have standard directories?

Thanks. I thought that (for some reason) the "default" directories also had to be included in ld.so.conf.

Offline

#5 2010-02-20 02:09:25

leepesjee
Member
Registered: 2008-11-06
Posts: 57

Re: [SOLVED] /etc/ld.so.conf doesn't have standard directories?

Edit: please ignore (answer allready given).

Last edited by leepesjee (2010-02-20 02:12:22)

Offline

Board footer

Powered by FluxBB