The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/16/install-make.html Description:
Hello there, Below are complete steps for building Postgres from source in a clean docker ubuntu container. Maybe this is useful for your docs? I noticed the 'Chapter 17. Installation from Source Code' doesn't discuss many common dependency issues like ICU and Zlib. If you would like a write up, I can contribute. Thanks, Sundip STEPS: docker pull ubuntu docker run --rm -it --entrypoint bash ubuntu apt update && apt upgrade apt install build-essential apt install sudo apt install git apt install pkg-config apt install libicu-dev apt install bison apt install flex apt install libreadline-dev apt install zlib1g-dev adduser postgres usermod -aG sudo postgres git clone https://git.postgresql.org/git/postgresql.git ./configure make sudo make install sudo mkdir -p /usr/local/pgsql/data sudo chown postgres /usr/local/pgsql/data /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start /usr/local/pgsql/bin/createdb test /usr/local/pgsql/bin/psql test