Download and run the msys2-x86_64-*.exe
installer.
-Install to a directory that you have write access to, e.g. under %USERPROFILE%\msys64
.
Download and run the msys2-base-x86_64-*.sfx.exe
installer.
+Install to a directory that you have write access to, e.g. under %USERPROFILE%\msys64
.
+Note: the installer will extract to .\msys64
by default.
Run the MSYS2 UCRT64 launcher. -UCRT64 is Microsoft's Universal C Runtime Library and is the preferred build environment on modern (Windows 10 and above) Windows operating systems. +
Start the MSYS2 UCRT64 environment by running ucrt64.exe
.
+UCRT64 is Microsoft's Universal C Runtime Library and is the preferred build environment on modern (Windows 10 and above) Windows operating systems.
For more information, see Environments.
Update the MSYS2 environment with pacman -Syu
and then install the toolchain package group with pacman -S mingw-w64-ucrt-x86_64-toolchain
.
+
Update the MSYS2 environment with pacman -Syu
.
+You might be prompted to terminate the environment to complete the installation of all the upates.
+Relaunch ucrt64.exe
if necessary, and install the toolchain package group with pacman -S mingw-w64-ucrt-x86_64-toolchain
.
This will install all of the build tools including gcc
, g++
, and mingw32-make
, plus the libstdc
and libstdc++
libraries.
Optionally, add %USERPROFILE%\msys64\ucrt64\bin
to the %PATH%
environment variable to get access to the tools from the normal Windows Command Prompt or PowerShell.