mingw-w64 installer “the file has been downloaded incorrectly”

前端 未结 4 1953
春和景丽
春和景丽 2021-02-15 12:02

I am trying to install mingw-w64 onto Windows. However I receive an error, \"the file has been downloaded incorrectly\". Redownloading the setup file again from sourceforge does

相关标签:
4条回答
  • 2021-02-15 12:25

    I received the same error. When I re-ran the installer as an adminstrator it was installed successfully.

    I also made sure not to add any spaces to the installation path.

    0 讨论(0)
  • 2021-02-15 12:31

    The problem is with your internet connection and/or ISP. I'm not great at networking so I'll let others be more specific. I tried installing/downloading it using my mobile's data as wifi hotspot and it worked. Hope it helps

    0 讨论(0)
  • 2021-02-15 12:33

    Finally, I solved this problem by downloading this:http://winlibs.com/

    GCC 10.1.0 + LLVM/Clang/LLD/LLDB 10.0.0 + MinGW-w64 7.0.0 - release 3 (LATEST) Win32: 7-Zip archive* | Zip archive Win64: 7-Zip archive* | Zip archive

    and set the %path%

    After that, I still can't execute gcc correctly, but then I solved the problem by adding this environment variable:

    "CGO_ENABLED=1"

    I encountered the problem when using this golang package: https://github.com/mattn/go-sqlite3

    0 讨论(0)
  • 2021-02-15 12:39

    Old post but same problem, the installer doesn't seem to work.

    I give the solution which works for me

    You can directly download the archive of MinGW64 with your chosen configuration :

    https://sourceforge.net/projects/mingw-w64/files/mingw-w64/

    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)

    0 讨论(0)
提交回复
热议问题