How to download and install MinGW on any Windows

Posted on January 4, 2021 by NearFile

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
How to download and install MinGW on any Windows - NearFile.Com

MinGW is a GNU Compiler Collection (GCC) native Windows port with freely distributable import libraries and header files to create native Windows applications; provides MSVC runtime extensions to support C99 functionality. While (currently) only a 32-bit compiler suite is available, all of MinGW’s software will run on 64-bit Windows platforms.

MinGW is a registered trademark of Software in the Public Interest Inc.registration number 86017856; this trademark has been registered on behalf of the Project, and its use by any other project

Video Tutorial

How to download and install MinGW on any Windows || NearBlogs || Learn Science And Computer

Where to download it?

In this article, I am going to show you that how you can download and install this awesome software on any windows PC without any problem.

To start the installation, you must download this software on your PC. Click the button below to go to the download page.

MinGW Download from NearFile - NearBlogs

How to install MinGW on any Windows?

To successfully install it without any issue you need to follow these steps:

After downloading MinGW from the above, you will find a file named “mingw-get-setup.exe“:

mingw-get-setup.exe downloaded - NearBlogs

Now from mouse right click on it and click on “Run as administrator“. A pop up window will appear in front of you. From there click “Yes“. Then a window will appear on your PC. From there click on “Install“.

MinGW Installation Manager Setup Tool Step 1 - NearBlogs

After clicking on Install another page will appear which will ask you to choose the destination directory you want to Install it. As the default the directory will be selected like: C:\MinGW. Click on change button to change the directory which you want and then click on “Continue“.

For this Tutorial we are using the destination directory default.

MinGW Installation Manager Setup Tool Step 2 - NearBlogs

After clicking continue the installation will be started. Wait for some time to complete the installation.

MinGW Installation Manager Setup Tool Step 2 - NearBlogs

When the installation is finished click on “Continue”.

MinGW Installation Manager Setup Tool Step 4 - NearBlogs

After clicking continue, wait for a moment and MinGW Installation Manager will be opened. From there, on the left side choose the package types you want. There will be two option: “Basic Setup” & “All Packages”. Select the “Basic Setup” and from the right side Packages window, Mark the following packages to be installed:

  1. mingw-developer-toolkit
  2. mingw32-base
  3. mingw32-gcc-g++
  4. mingw32-gcc-objc
  5. msys-base
MinGW Packages To be installed Selecting - NearBlogs
MinGW Packages To be installed Selected - NearBlogs

After selecting all these packages, from the menu bar go to:
Installation -> Apply Changes

MinGW Packages Installing Step 1 - NearBlogs

After clicking “Apply Changes” another window will open titled “Schedule Pending Actions“. From there click on “Apply“. As soon as you will click on apply, the package installation will be started.

MinGW Schedule of Pending Acrions - NearBlogs
MinGW Downloading Packages - NearBlogs

After completing the installation of packages another window will appear with the details of your package installation. From that window, click on “Close“and move to the next step.

MinGW Applying Schedule Changes - NearBlogs

Your installation for MinGW is almost complete. Now you need to do only one more thing to complete the installation.

Now open the destination directory of your MinGW, you have installed and open the folder named “bin”. For this tutorial, we had selected the default directory for installing MinGW. So our MinGW destination directory is: C:\MinGW .

MinGW bin folder location - NearBlogs
MinGW bin folder location opened - NearBlogs

Now copy the location of MinGW “bin” folder like below image and move to the next step. (The location of MinGW may different for you)

MinGW bin folder location copy - NearBlogs

Now open “Control Panel” and from the search bar, search for “env“. From the search result, under the System, click on “Edit environment variables for your account“.

Search for env from Control Panel - NearBlogs

By clicking it, another window will on your PC screen titled “Environment Variables“. From that window, select “Path” and click on “Edit“.

Edit Environment Varibles for your account step 1 - NearBlogs

After clicking “Edit“, another window will open named “Edit User Variables“. From that window, on the “Variable Value” field, go to the last point of the value and add a “Semi-Colon (;)” and then paste the directory destination of your MinGW’s “bin” folder. Now click “OK” and again click “OK” of the remain opened window.

Edit User Variables Path - NearBlogs
Edit User Variables Path MinGW bin folder location pasted - NearBlogs

That’s it! You have successfully installed MinGW on your windows PC. This process is same for all Windows. Like Windows 7/8/8.1/10 for both 32 bits and 64 bits.

I hope you have successfully installed your desired software. But if you failed to install it or faced any problem then please don’t hesitate to ask me by commenting below.

Notify of
Inline Feedbacks
View all comments