Using "make" command in Windows through MinGW
От | PG Doc comments form |
---|---|
Тема | Using "make" command in Windows through MinGW |
Дата | |
Msg-id | 174637381527.1455382.9483810971048734664@wrigleys.postgresql.org обсуждение исходный текст |
Список | 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.
В списке pgsql-docs по дате отправления: