From: Tom Lane <tgl@sss.pgh.pa.us>
To: wefraser@yahoo.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: regression tests require some file(s) to be installed first.
Date: Mon, 10 Oct 2022 10:26:20 -0400
Message-ID: <4071075.1665411980@sss.pgh.pa.us> (raw)
In-Reply-To: <166537181453.591810.8404107151681164831@wrigleys.postgresql.org>
References: <166537181453.591810.8404107151681164831@wrigleys.postgresql.org>
PG Doc comments form <noreply@postgresql.org> writes:
> I used all of the defaults and steps 1 and 2 looked good, but when tried to
> run the regression tests in step 3, the database failed to load with the
> following error in
> "/Users/bfraser/tools/postgresql-14.5/src/test/regress/log/initdb.log":
> dyld: Library not loaded: /usr/local/pgsql/lib/libpq.5.dylib
> After I ran step 4 (make install), the regression test worked perfectly.
Yeah, thanks to some dubious "security" restrictions in macOS,
make check doesn't work unless you first do make install.
(Basically, they've lobotomized DYLD_LIBRARY_PATH, so that
the executables will only look for libraries in the configured
installation library directory :-(. It's far from clear to me
why that's of any security value when they still let you change
PATH, but I don't work there.)
This is documented in the macOS-specific installation notes.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, wefraser@yahoo.com, pgsql-docs@lists.postgresql.org
Subject: Re: regression tests require some file(s) to be installed first.
In-Reply-To: <4071075.1665411980@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox