Re: mac install question - Mailing list pgsql-general

From Dave Page
Subject Re: mac install question
Date
Msg-id 937d27e10807241324y40ebc04es5c3c03ba8ca9b5b8@mail.gmail.com
Whole thread Raw
In response to Re: mac install question  (John DeSoi <desoi@pgedit.com>)
List pgsql-general
On Thu, Jul 24, 2008 at 12:55 PM, John DeSoi <desoi@pgedit.com> wrote:
>
> On Jul 24, 2008, at 1:51 AM, Tom Lane wrote:
>
>> Relative paths sound like the best solution to me, assuming they work.
>
> Relative paths work fine. I use this all the time for distributing psql. It
> looks something like this:
>
> install_name_tool -change /path/to/postgresql/lib/libpq.dylib
> @executable_path/../lib/libpq.dylib psql

Yeah, we do that in pgAdmin. In the installer though we have far more
executables and libraries in various locations, and scripting the
required changes (without hardcoding for specific filenames which is a
recipe for future bugs) will be much more tricky.

The other downside is that I won't be able to set the library install
name correctly of course. I'll have to change that to just the
filename.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: UPDATE runs slow in a transaction
Next
From: "JD Wong"
Date:
Subject: [PERL DBI] Insertiing data across multiple tables