I am trying to install MinGW64 on Windows 10. Here is what I tried:
Via http://mingw-w64.org/doku.php
I went to http://mingw-w64.org/doku.php/download/win-builds and from there to http://win-builds.org/doku.php/download_and_installation_from_windows where I downloaded Win-builds 1.5.0. I run the exe and let it install everything. When it gets to install mingw64 it says that the Download failed (no further information). What should I do?
Via https://sourceforge.net/projects/mingw-w64/
I also downloaded mingw-w64-v7.0.0 from https://sourceforge.net/projects/mingw-w64/, extracted the zip but have not idea what to do with the contents:
13.02.2020 13:37 .gitignore
13.02.2020 13:37 31.032 aclocal.m4
13.02.2020 13:37 2.398 AUTHORS
13.02.2020 13:37 <DIR> build-aux
13.02.2020 13:37 625 config.h.in
13.02.2020 13:37 123.961 configure
13.02.2020 13:37 3.268 configure.ac
13.02.2020 13:37 2.326 COPYING
13.02.2020 13:37 <DIR> COPYING.MinGW-w64
13.02.2020 13:37 <DIR> COPYING.MinGW-w64-runtime
13.02.2020 13:37 2.245 DISCLAIMER
13.02.2020 13:37 454 DISCLAIMER.PD
13.02.2020 13:37 745 Makefile.am
13.02.2020 13:37 25.337 Makefile.in
13.02.2020 13:38 <DIR> mingw-w64-crt
13.02.2020 13:38 <DIR> mingw-w64-doc
13.02.2020 13:39 <DIR> mingw-w64-headers
13.02.2020 13:39 <DIR> mingw-w64-libraries
13.02.2020 13:39 <DIR> mingw-w64-tools
From: mingw-w64 installer "the file has been downloaded incorrectly"
In https://stackoverflow.com/a/48519212/4533188 it was said that should download from https://sourceforge.net/projects/mingw-w64/files/mingw-w64/, so I went there downloaded MinGW-W64-install.exe
and ran it. The post says further
Once the compressed file downloaded, you have just to extract and copy/paste the MinGW64 folder( with the pre-compiled librairies) to your chosen folder ( in my case : C:\mingw64)
but I got a lot of files installed to C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\
. So I copied the files of the folder to C:\MinGW64
, but it seems I still do not have it installed.
From How to install MinGW-w64 and MSYS2?
I went to https://www.msys2.org/, downloaded the x86_64
version, went through the steps outlined in https://stackoverflow.com/a/40800825/4533188 - except for point 7. which I substituted with running pacman -S mingw-w64-x86_64-cmake
. This seems to have worked, but the folder C:\MinGW64
is empty and running gcc.exe --version
says, the command could not be found. I have no idea where msys2 installed what and how I have to link/move what to get gcc to run.
The following approach did work for me. I got there via the link in https://stackoverflow.com/a/39113943/4533188
Alternative way of clicking around:
Then:
mingw64
- move it (and its contents) into C:\MinGW64
C:\MinGW64\mingw64\bin\gcc.exe