agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: b.y.abzaluli@gmail.com
Subject: Using "make" command in Windows through MinGW
Date: Sun, 04 May 2025 15:50:15 +0000
Message-ID: <174637381527.1455382.9483810971048734664@wrigleys.postgresql.org> (raw)

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.


Message-ID: <174637381527.1455382.9483810971048734664@wrigleys.postgresql.org>
Permalink:  ../174637381527.1455382.9483810971048734664@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/174637381527.1455382.9483810971048734664@wrigleys.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, b.y.abzaluli@gmail.com
  Subject: Re: Using "make" command in Windows through MinGW
  In-Reply-To: <174637381527.1455382.9483810971048734664@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox