Setting environment variables for libraries

Thomas Milne tbrucemilne-TcoXwbchSccMMYnvST3LeUB+6BGkLq7r at public.gmane.org
Tue May 18 12:51:54 UTC 2010


On Mon, May 17, 2010 at 7:29 PM, Lennart Sorensen
<lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org> wrote:
> 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.
>

That did it, awesome!

joehill at node1:~$ ldd /usr/bin/gtkpod | grep libgpod
	libgpod.so.4 => /usr/local/lib/libgpod.so.4 (0xb75b9000)

Thanks :-)

-- 
TBM
--
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