Skip to Content.
Sympa Menu

baslinux - Re: [BL] ld.so.conf and /usr/local/lib

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] ld.so.conf and /usr/local/lib
  • Date: Sun, 20 Jul 2008 06:03:50 +1200

Message from Steven
===================
Sindi wrote:
>
> Does ldconfig do anything other than make symlinks?

It also creates a cache (/etc/ld.so.cache) which speeds
the loading of programs which use shared libraries.
The cache is used by the run-time linker, ld.so or
ld-linux.so. ldconfig checks the header and filenames
of the libraries it encounters when determining which
versions should have their links updated.

> man ldconfig suggests using environment variable
> LD_LIBRARY_PATH - would this be in /etc/profile

You could put it in /etc/profile or you could simply
enter it at the commandline.

> and what exactly would the line look like in order
> to add /usr/local/lib?

LD_LIBRARY_PATH="/usr/local/lib"

Or, if LD_LIBRARY_PATH already exists and you want
to add to it:

LD_LIBRARY_PATH="$LD_LIBRARY-PATH:/usr/X11R6/bin"


Cheers,
Steven




Archive powered by MHonArc 2.6.24.

Top of Page