pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgres compilation instructions do not work on modern debian or ubuntu
2+ messages / 2 participants
[nested] [flat]

* Postgres compilation instructions do not work on modern debian or ubuntu
@ 2023-12-31 03:10 PG Doc comments form <noreply@postgresql.org>
  2024-01-01 19:23 ` Re: Postgres compilation instructions do not work on modern debian or ubuntu Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Doc comments form @ 2023-12-31 03:10 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: lewis+postgres@cowles.uk

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/install-make.html
Description:

Hello, I Hope you've enjoyed a festive period.

Thanks for all your hard work, postgres is amazing. Small suggestion for
installation instructions on debian / ubuntu boxes:

apt install -yqq build-essential libreadline-dev zlib1g-dev flex bison
libxml2-dev libxslt-dev libssl-dev libxml2-utils xsltproc ccache git
libicu-dev pkg-config

works, what is listed misses git, libicu-dev and pkg-config

git may be optional for those downloading from a tarball, but something to
untar would then be required, as would gzip most-likely.

Even with the above, make world and make world-bin and make check, do not
succeed on arm64, so I've no idea if the build is reporting success, but
silently failing (I get return code zero, so it should pass a compile in
CI)

For testing this, I use docker as it's fast-enough to burn down the world
and check my instructions work (see below):

----

Compiling postgres 16

docker run --rm -it ubuntu:22.04
Or
docker run --rm -it debian

Then within container install system-build-dependencies

apt update -yqq
apt install -yqq build-essential libreadline-dev zlib1g-dev flex bison
libxml2-dev libxslt-dev libssl-dev libxml2-utils xsltproc ccache git
libicu-dev pkg-config

Now time to clone Postgres

git clone https://github.com/postgres/postgres.git
cd postgres
git checkout REL_16_1
git checkout -b release/16.1

Now we can build Postgres

./configure
make -j4


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

* Re: Postgres compilation instructions do not work on modern debian or ubuntu
  2023-12-31 03:10 Postgres compilation instructions do not work on modern debian or ubuntu PG Doc comments form <noreply@postgresql.org>
@ 2024-01-01 19:23 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2024-01-01 19:23 UTC (permalink / raw)
  To: lewis+postgres@cowles.uk; +Cc: pgsql-docs@lists.postgresql.org

PG Doc comments form <noreply@postgresql.org> writes:
> Page: https://www.postgresql.org/docs/16/install-make.html
> Description:

> Thanks for all your hard work, postgres is amazing. Small suggestion for
> installation instructions on debian / ubuntu boxes:

> apt install -yqq build-essential libreadline-dev zlib1g-dev flex bison
> libxml2-dev libxslt-dev libssl-dev libxml2-utils xsltproc ccache git
> libicu-dev pkg-config

> works, what is listed misses git, libicu-dev and pkg-config

There is nothing in the core PG documentation, either on the page
you cite or anyplace else, that tries to specify exactly what other
packages you might need to build from source on any particular
distribution.  We aren't very interested in trying to add such lists,
precisely because they'd be constantly out of date.

You might have found the above list somewhere else, but in that case
you should be reporting the omissions somewhere else than here.

> Even with the above, make world and make world-bin and make check, do not
> succeed on arm64, so I've no idea if the build is reporting success, but
> silently failing (I get return code zero, so it should pass a compile in
> CI)

Can't help you on that when you provide no details.  PG certainly
does work for many other people on Debian+arm64.

			regards, tom lane





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


end of thread, other threads:[~2024-01-01 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-12-31 03:10 Postgres compilation instructions do not work on modern debian or ubuntu PG Doc comments form <noreply@postgresql.org>
2024-01-01 19:23 ` 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