Re: multi-install PostgresNode

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: multi-install PostgresNode
Date: 2021-01-28 14:24:44
Message-ID: 20210128142444.GA31513@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2021-Jan-28, Andrew Dunstan wrote:

... neat stuff, thanks.

> + # Windows picks up DLLs from the PATH rather than *LD_LIBRARY_PATH
> + # choose the right path separator
> + if ($Config{osname} eq 'MSWin32')
> + {
> + $ENV{PATH} = "$inst/bin;$inst/lib;$ENV{PATH}";
> + }
> + else
> + {
> + $ENV{PATH} = "$inst/bin:$inst/lib:$ENV{PATH}";
> + }

Hmm, if only Windows needs lib/ in PATH, then we do we add $inst/lib to
PATH even when not Windows?

> + if (exists $ENV{DYLIB})
> + {
> + $ENV{DYLIB} = "$inst/lib:$ENV{DYLIB}";
> + }
> + else
> + {
> + $ENV{DYLIB} = "$inst/lib}";

Note extra closing } in the string here.

--
Álvaro Herrera 39°49'30"S 73°17'W

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2021-01-28 14:30:14 Re: CREATE INDEX CONCURRENTLY on partitioned index
Previous Message 'Alvaro Herrera' 2021-01-28 14:13:53 Re: libpq debug log