Re: pgNixInstaller: Making PostgreSQL relocatable

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Enver ALTIN <ealtin(at)parkyeri(dot)com>, pgsql-hackers(at)postgresql(dot)org, Devrim Gunduz <devrim(at)commandprompt(dot)com>, Nicolai Tufar <ntufar(at)gmail(dot)com>, Burcu Guzel <burcu(dot)guzel(at)gmail(dot)com>
Subject: Re: pgNixInstaller: Making PostgreSQL relocatable
Date: 2006-03-24 00:47:13
Message-ID: BB840E89-0773-4365-A4C4-2E605864299D@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Mar 23, 2006, at 12:15 AM, Tom Lane wrote:

> OK ... it's supposed to work to shift the whole installation tree to
> a new root, ie, paths to places like the /share and /lib directories
> are determined relative to where the backend executable actually is.
> If this is not working on Solaris then for sure we want to know ...

It is not relocatable on OS X. The full prefix path seems to be used
instead. For example:

[M:bin/postgresql/bin] % otool -L pg_ctl
pg_ctl:
/sw/bin/postgresql-8.1.2/lib/libpq.4.dylib (compatibility
version 4.0.0, current version 4.1.0)
/usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7,
current version 0.9.7)
/usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7,
current version 0.9.7)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.3)
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0,
current version 369.1.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.1.2)
/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current
version 92.0.0)

It would be really nice to have relative references.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2006-03-24 01:31:15 Re: Static build of psql with readline support
Previous Message Joshua D. Drake 2006-03-24 00:41:02 Re: Did this work in earlier version of Postgres?