title: How to install MinGW64 (non of the approaches work)
body: <p>I am trying to install MinGW64 on Windows 10. Here is what I tried:</p>
  
  <h1>Approach 1</h1>
  
  <p><em>Via <a href="http://mingw-w64.org/doku.php" rel="nofollow noreferrer">http://mingw-w64.org/doku.php</a></em></p>
  
  <p>I went to <a href="http://mingw-w64.org/doku.php/download/win-builds" rel="nofollow noreferrer">http://mingw-w64.org/doku.php/download/win-builds</a> and from there to <a href="http://win-builds.org/doku.php/download_and_installation_from_windows" rel="nofollow noreferrer">http://win-builds.org/doku.php/download_and_installation_from_windows</a> 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?</p>
  
  <h1>Approach 2</h1>
  
  <p><em>Via <a href="https://sourceforge.net/projects/mingw-w64/" rel="nofollow noreferrer">https://sourceforge.net/projects/mingw-w64/</a></em></p>
  
  <p>I also downloaded mingw-w64-v7.0.0 from <a href="https://sourceforge.net/projects/mingw-w64/" rel="nofollow noreferrer">https://sourceforge.net/projects/mingw-w64/</a>, extracted the zip but have not idea what to do with the contents:</p>
  
  <pre><code>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    &lt;DIR&gt;          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    &lt;DIR&gt;          COPYING.MinGW-w64
  13.02.2020  13:37    &lt;DIR&gt;          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    &lt;DIR&gt;          mingw-w64-crt
  13.02.2020  13:38    &lt;DIR&gt;          mingw-w64-doc
  13.02.2020  13:39    &lt;DIR&gt;          mingw-w64-headers
  13.02.2020  13:39    &lt;DIR&gt;          mingw-w64-libraries
  13.02.2020  13:39    &lt;DIR&gt;          mingw-w64-tools
  </code></pre>
  
  <h1>Approach 3</h1>
  
  <p><em>From: <a href="https://stackoverflow.com/questions/46455927/mingw-w64-installer-the-file-has-been-downloaded-incorrectly">mingw-w64 installer &quot;the file has been downloaded incorrectly&quot;</a></em></p>
  
  <p>In <a href="https://stackoverflow.com/a/48519212/4533188">https://stackoverflow.com/a/48519212/4533188</a> it was said that should download from <a href="https://sourceforge.net/projects/mingw-w64/files/mingw-w64/" rel="nofollow noreferrer">https://sourceforge.net/projects/mingw-w64/files/mingw-w64/</a>, so I went there downloaded <code>MinGW-W64-install.exe</code> and ran it. The post says further</p>
  
  <blockquote>
    <p>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)</p>
  </blockquote>
  
  <p>but I got a lot of files installed to <code>C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\</code>. So I copied the files of the folder to <code>C:\MinGW64</code>, but it seems I still do not have it installed.</p>
  
  <h1>Approach 4</h1>
  
  <p><em>From <a href="https://stackoverflow.com/questions/30069830/how-to-install-mingw-w64-and-msys2">How to install MinGW-w64 and MSYS2?</a></em></p>
  
  <p>I went to <a href="https://www.msys2.org/" rel="nofollow noreferrer">https://www.msys2.org/</a>, downloaded the <code>x86_64</code> version, went through the steps outlined in <a href="https://stackoverflow.com/a/40800825/4533188">https://stackoverflow.com/a/40800825/4533188</a> - except for point 7. which I substituted with running <code>pacman -S mingw-w64-x86_64-cmake</code>. This seems to have worked, but the folder <code>C:\MinGW64</code> is empty and running <code>gcc.exe --version</code> 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.</p>