Re: LD_LIBRARY_PATH - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: LD_LIBRARY_PATH
Date
Msg-id Pine.LNX.4.30.0012291319580.822-100000@peter.localdomain
Whole thread Raw
In response to Re: LD_LIBRARY_PATH  ("Andrew W. Nosenko" <awn@bcs.zp.ua>)
List pgsql-general
Andrew W. Nosenko writes:

> As I understand Mike speak not about files in general but about
> libraries (and possible have in mind executables too). And hardcoded
> patch to libraries is nightmare, IMO.

The deal is this:  As a general rule, in any software package that you
build from source via ./configure; make; make install you *must* install
the files at the location that you told configure (with --prefix, etc.).
It may be the case that the particular package doesn't care (e.g., GNU
make doesn't care because it only installs a single executable and some
documentation), but just about any package that installs more than one
file has this requirement.  It's not just hardcoded library paths, it's
executables containing paths to data and configuration files, data files
containing paths to library files and other data files, libraries
containing paths to configuration files, etc.  So the discussion about
what happens when you move your libraries is essentially pointless.

Certainly, the interface offered by most linkers to control runtime paths
isn't ideal, but it's much better than not having one at all.  I'm aware
that there are circumstances where you really don't want to hardcode the
library path.  Then you can use 'configure --disable-rpath'.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-general by date:

Previous
From: Frank Joerdens
Date:
Subject: Re: MySQL and PostgreSQL speed compare
Next
From: "Gordan Bobic"
Date:
Subject: Re: MySQL and PostgreSQL speed compare