From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
Cc: | sundip(dot)tailor(at)gmail(dot)com |
Subject: | Building from source using clean Ubuntu docker container |
Date: | 2024-05-23 10:10:53 |
Message-ID: | 171645905337.2021730.679031210652169512@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Wienhold | 2024-05-23 12:17:33 | Re: column_name of ALTER MATERIALIZED VIEW should only refer to an existing column |
Previous Message | Michael Paquier | 2024-05-23 04:04:31 | Re: column_name of ALTER MATERIALIZED VIEW should only refer to an existing column |