Step 1: Install Git for Windows (Git only)
- Download Git:
https://git-scm.com/download/win - Run installer
Important choice:- ✅ Git from the command line and also from 3rd-party software
- Finish installation
- Verify (in Git Bash):
git --version
Step 2: Install MSYS2 (this is where pacman comes from)
Git does not provide pacman anymore.
MSYS2 is now installed separately.
1. Download MSYS2
Click Download Installer.
2. Run MSYS2 installer
- Accept defaults
- Let it install to:
C:\msys64
3. Open MSYS2 UCRT64 (important!)
From Start Menu, open:
MSYS2 UCRT64
⚠️ Do not use:
- MSYS
- MinGW32
- MinGW64
UCRT64 gives the most Linux-like behavior.
4. Update MSYS2
In the MSYS2 terminal:
pacman -Syu
If it asks to close the terminal:
- Close it
- Reopen MSYS2 UCRT64
- Run again if prompted
Step 3: Install make (and compiler)
In MSYS2 UCRT64:
pacman -S make
(Optional but strongly recommended for CS courses:)
pacman -S gcc
Verify
make --version gcc --version
