[plug] library paths, Debian

Tony Breeds magni at plug.linux.org.au
Mon Jul 14 14:39:25 WST 2003


On Fri, Jul 04, 2003 at 03:35:57PM +0800, Denis Brown wrote:
> Dear PLUG list members,
> 
> Googling hasn't been too helpful so far on this.  General questions: what 
> sets up the library paths for an application/library and where is that 
> magic smoke located?   Specific question: when installing PostgreSQL from 
> tarball, zlib cannot be found even though it is present as part of the 
> kernel.

The zlib that is part of the kernel is not accessable from userspace.

The std path for libraries is:
/lib/
/usr/lib/

all other are specified in /etc/ld.so.conf

You can check for the existance of a useable library with:
ls $((/bin/echo -ne "/lib\n/usr/lib\n";cat /etc/ld.so.conf)|sort|uniq) | \
	grep LIBRARYNAME

Make sure you have zlib1g and zlib1g-dev .debs installed.

-- 
Yours Tony

        Linux.Conf.AU       http://conf.linux.org.au/
        Jan 12-17 2004      The Australian Linux Technical Conference!



More information about the plug mailing list