public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: AJ ONeal <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: How to Build Postgres in a Portable / Relocatable fashion?
Date: Fri, 03 May 2024 19:44:54 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <rjf-sGbM2HPV0EZuoN9yA4GDL9CqVCD2AzkwyByjKmF5mGstw6TrqT_5OIC1yPvfSAsjyE30Y4i4Oojq5nwQXtjdFVF7dx0cXxJgSBARBV8=@proton.me>
References: <v_-p47epUmnjcXPhpH9dygB6PKkwhLsccfj7o0snGd-GNubV138HZaU1YvAcyoqeQ4pqcT20hgHbmVlwaYXpcWDZ_iDCREz1A8hkkEDYdF8=@proton.me>
	<[email protected]>
	<rjf-sGbM2HPV0EZuoN9yA4GDL9CqVCD2AzkwyByjKmF5mGstw6TrqT_5OIC1yPvfSAsjyE30Y4i4Oojq5nwQXtjdFVF7dx0cXxJgSBARBV8=@proton.me>

AJ ONeal <[email protected]> writes:
> What I want to create (and provide) is a portable tarball that has
> most of all what it needs in the tarball and will look for relevant
> libraries relative to itself.

See

https://www.postgresql.org/docs/current/installation.html

particularly the discussion of installation relocatability under

https://www.postgresql.org/docs/current/install-make.html#CONFIGURE-OPTIONS-LOCATIONS

In short, you have to specify an installation path, but as long
as you don't muck with the relative locations of the subdirectories
it should be possible to move the whole tree to a different
installation location.

> Something that Just Works™ *almost* anywhere (Ubuntu, Debian, RedHat, Suse... maybe even Alpine).

That's a little harder, mainly because the shared libraries for
dependencies like openssl etc may not be 100% compatible across
all those platforms.  Different versions, different build options,
yadda yadda.

Maybe you should be thinking in terms of a docker container
or the like?

			regards, tom lane






view thread (3+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: How to Build Postgres in a Portable / Relocatable fashion?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox