D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Debian and shared library

 

On Wed, 14 Mar 2012, Tony Sumner wrote:

Simon gave me some useful information about the Windows aspect.

It's not important any more but I still don't know how Debian accesses
shared libaries, which was the point of the orignal question before we
got distracted by what I was doing. The manual says it is via the
environment variable LD_LIBRARY_PATH but when I typed 'env' there was
no such in there. However I created one anew and put /usr/local/lib in
it and I now get the access I wanted and not the error message.

It's not a Debian thing, but a generic Linux thing.

Briefly, Linux has a global cache/search list of libraries to seach through - see /etc/ld.so.conf but you can augment it by setting the environment variable LD_LIBRARY_PATH.

/usr/local/lib is usually included though....

Try running

  ldconfig -v

to get the complete dump of all libraries and where they point...

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq