pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
regression tests require some file(s) to be installed first.
2+ messages / 2 participants
[nested] [flat]

* regression tests require some file(s) to be installed first.
@ 2022-10-10 03:16 PG Doc comments form <noreply@postgresql.org>
  2022-10-10 14:26 ` Re: regression tests require some file(s) to be installed first. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Doc comments form @ 2022-10-10 03:16 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: wefraser@yahoo.com

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/install-procedure.html
Description:

This might be a documentation issue, and it might be an actual issue, I'm
not sure.

I was following the installation instructions from the
https://www.postgresql.org/docs/current/install-procedure.html

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
  Referenced from:
/Users/bfraser/tools/postgresql-14.5/tmp_install/usr/local/pgsql/bin/initdb
  Reason: image not found
======

Based on the way to documentation reads currently, I'm thinking that the
regression tests shouldn't depend on (and, if fact shouldn't even be looking
at) any files in "/usr/local".

After I ran step 4 (make install), the regression test worked perfectly.

Run on MacOS 11.4, GNU Make 3.81


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: regression tests require some file(s) to be installed first.
  2022-10-10 03:16 regression tests require some file(s) to be installed first. PG Doc comments form <noreply@postgresql.org>
@ 2022-10-10 14:26 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2022-10-10 14:26 UTC (permalink / raw)
  To: wefraser@yahoo.com; +Cc: pgsql-docs@lists.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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-10-10 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10 03:16 regression tests require some file(s) to be installed first. PG Doc comments form <noreply@postgresql.org>
2022-10-10 14:26 ` Tom Lane <tgl@sss.pgh.pa.us>

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