Setting environment variables for libraries

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon May 17 23:29:05 UTC 2010


On Mon, May 17, 2010 at 02:25:00PM -0400, Thomas Milne wrote:
> Now that I'm using Debian I _try_ to do things the proper way, so
> right now I'm trying to set it up so that I can use some custom built
> libs in /usr/local.
> 
> I checked in ld.so.conf and ld.so.conf.d, not sure what to mess with
> in there, or if I even should.
> 
> I'm thinking this is one of those things I can 'set', but I"ve never
> done this before.
> 
> Is it safe to just run something like LD_LIBRARY_PATH=/usr/local/lib,
> or will I make things worse?

I thought /usr/local/lib was normally already in /etc/ld.so.conf

If it isn't, adding /etc/ld.so.conf.d/local containing
/usr/local/lib

should be fine.  Then run ldconfig.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list