Using "make" command in Windows through MinGW

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: b(dot)y(dot)abzaluli(at)gmail(dot)com
Subject: Using "make" command in Windows through MinGW
Date: 2025-05-04 15:50:15
Message-ID: 174637381527.1455382.9483810971048734664@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/17/tutorial-sql-intro.html
Description:

Chapter 2.1 "Introduction".
-- I would like to add how to use "make" command on Windows for creation
of sql files.
Chapter 2.2 "Running 'make' command on Windows"
Windows operating system does not have "make" command in its CLI
(command line interface, "Windows PowerShell" or "cmd" by default) in
contrast to GNU/Linux. However you may use it by installing MinGW
(Minimalistic GNU for Windows) environment, with usage of MSYS2 CLI. To do
it, you have to install MSYS2 (GCC), which is described on the MinGW
official website (https://www.mingw-w64.org/getting-started/msys2/) It may
already be installed on your computer, if you were downloading C/C++
compilers from GNU (gcc or g++).
After installation of MSYS2, open "MSYS2 MINGW64" and run these commands:
$ pacman -S mingw-w64-x86_64-postgresql -- postgresql
packages for MinGW virtual environment.
$ pacman -S mingw-w64-x86_64-gcc" -- compiler for C
files for MinGW virtual environment.
In the same CLI (e.g. "MSYS2 MINGW64") run "make" as it was written before:
$ cd .../src/tutorial
$ make
From now on you may quit and use default CLI to start the tutorial.

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2025-05-08 14:53:15 "GRANT on Roles" supports multiple options
Previous Message David G. Johnston 2025-05-04 14:07:15 Re: Changes in CREATE EXTENSION from being an extension to statement