pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mario Emmenlauer <mario@emmenlauer.de>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: lib and share are installed differently, but why?
Date: Mon, 30 Aug 2021 07:13:57 -0700
Message-ID: <a8d1d4c2-4514-deb9-1a4d-7960f3d5c306@aklaver.com> (raw)
In-Reply-To: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de>
References: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de>

On 8/30/21 3:53 AM, Mario Emmenlauer wrote:
> 
> Dear All,
> 
> I've been building and using PostgreSQL from source for a few years
> now, thanks for the awesome work!
> 
> Since upgrading from 12.5 to 12.8, I've found a problem that I can
> not resolve myself. We build PostgreSQL twice, once to folder A, and
> once to folder B. This is because A is more easily deployable, while
> B holds all our development build targets. The only difference in
> the two builds is the change in `--prefix` for configure. Everything
> else is identical, and both builds start from a clean directory.

What are the complete config commands for each build?

Does clean directory refer to the build directory?

> 
> But I see a difference in the installations:
>   - The contents of `share` go to A/share/ vs B/share/postgresql/
>   - The contents of `lib` go to B/lib vs B/lib/postgresql/

Is that really B/lib or is it A/lib?

To me it looks like in the past a different configuration or install 
method was used and you now have a mixed install.

> 
> I've played with all sorts of --libdir, --datarootdir and the like,
> but the behaviour stays the same. I fail to understand why in the
> case of --prefix=B (the target where we host a lot of other stuff),
> the install will use subdirectory 'postgresql', whereas for the
> --prefix=A (which is an empty directory) the install will not use
> a subdirectory.
> 
> Whats more, when I try to run the server in A, initdb will complain
> that the file in A/share/postgresql/postgresql.bki is missing, which
> indeed is true (because the file is at A/share/postgresql.bki).
> 
> Any help would be appreciated!
> 
> All the best,
> 
>      Mario Emmenlauer
> 
> 
> --
> BioDataAnalysis GmbH, Mario Emmenlauer      Tel. Buero: +49-89-74677203
> Balanstr. 43                   mailto: memmenlauer * biodataanalysis.de
> D-81669 München                          http://www.biodataanalysis.de/
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (4+ messages)  latest in thread

Message-ID: <a8d1d4c2-4514-deb9-1a4d-7960f3d5c306@aklaver.com>
Permalink:  ../a8d1d4c2-4514-deb9-1a4d-7960f3d5c306@aklaver.com/
Also on:    postgresql.org/message-id/a8d1d4c2-4514-deb9-1a4d-7960f3d5c306@aklaver.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, mario@emmenlauer.de
  Subject: Re: lib and share are installed differently, but why?
  In-Reply-To: <a8d1d4c2-4514-deb9-1a4d-7960f3d5c306@aklaver.com>
  References: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de> <a8d1d4c2-4514-deb9-1a4d-7960f3d5c306@aklaver.com>

* 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