If you are new to MinGW, see the MinGW Getting Started instructions to use the automated GUI or manual CLI (Command Line Interface) installers. What follows below are instructions for a very "manual" download, typically only attempted by more experienced users.
Before you start this manual installation, read the text at the bottom of this.
- Determine which files below you need and download them.
- Extract the files into a directory such as C:\MinGW
- Add C:\MinGW\bin; to the PATH environment variable.
You will need a program that can extract .tar.lzma files, such as 7-Zip or one that provides command-line tar and lzma tools. A basic standalone tar program that includes lzma support is available from the MinGW project and is called bsdtar
You must add C:\MinGW\bin; to your user PATH environment variable manually. You can permanently add C:\MinGW\bin; to your PATH by following the instructions in the "Environment Settings" section on the MinGW Getting Started page.
The resulting C:\MinGW subtree is fully relocatable which means that you can have multiple installations or versions MinGW suite. You can potentially have installations such as:
C:\MinGW-3.4.5 C:\MinGW-4.7.2 etc.
Switching between these is merely a matter of renaming any particular directory to C:\MinGW.
Files To Get
Download at least the following (or newer) packages from the MinGW Download Page. Where two or more component packages are indicated, you need both / all of them.
- mingw-runtime (dev and dll)
- Required runtime libraries for GCC:
- gcc-core (bin and dll)
The above are the minimum requirements for a working C Language compiler using the MinGW GCC toolchain.
You can also add one or more of the following optional compilers or tools. For each you choose to install, you need both the bin and the dll component packages:
- gcc-g++ (bin and dll) for C++
- gcc-objc (bin and dll) for Objective C
- gcc-gfortran (bin and dll) for Fortran 90/95
- gcc-java (not yet available) for Java
- gcc-ada (bin and dll) for Ada
Note that the GCC versions of these files must match the GCC version of the gcc-core installed.
You can also add the following additional utilities:
- mingw-gdb and libexpat for debugger
- mingw32-make for make
- mingw-utils for MinGW Utilities
- msysDTK for Unix-style developer toolkit
- MSYS for Unix-style commands and shell. (See the MSYS page for installation instructions.)
You may also want the following features:
Getting Updates or Making Changes
Updating a single package (e.g. when there is a new version of w32api) can be done by extracting the new version to C:\MinGW to overwrite the older version. This manual update also works with an initial automated install.