Dependencies to compile the source
To compile and build PostgreSQL from source, we need GNU Make Version 3.8 or higher. The gmake -v
command will tell us whether we have gmake
and its version.
A compiler is also necessary. GNU Compiler Collection (GCC) is one such toolset that is included in almost all the Unix systems. The gcc -v
command will provide you with the version of gcc
as well as options with which it was configured on the system, as shown in the following screenshot:
Note
We can use the following commands to install the necessary packages if they are missing:
- On Ubuntu:
sudo apt-get install build-essential
- On RHEL/CentOS:
sudo yum groupinstall ...
Get PostgreSQL for Data Architects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.