Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohtjh-0005AF-MU for pgsql-docs@arkaria.postgresql.org; Mon, 10 Oct 2022 14:26:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ohtjg-0006mV-HK for pgsql-docs@arkaria.postgresql.org; Mon, 10 Oct 2022 14:26:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohtjg-0006m6-AE for pgsql-docs@lists.postgresql.org; Mon, 10 Oct 2022 14:26:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohtjZ-0005OT-TC for pgsql-docs@lists.postgresql.org; Mon, 10 Oct 2022 14:26:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 29AEQKu64071076; Mon, 10 Oct 2022 10:26:20 -0400 From: Tom Lane To: wefraser@yahoo.com cc: pgsql-docs@lists.postgresql.org Subject: Re: regression tests require some file(s) to be installed first. In-reply-to: <166537181453.591810.8404107151681164831@wrigleys.postgresql.org> References: <166537181453.591810.8404107151681164831@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Mon, 10 Oct 2022 03:16:54 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4071074.1665411980.1@sss.pgh.pa.us> Date: Mon, 10 Oct 2022 10:26:20 -0400 Message-ID: <4071075.1665411980@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form 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