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

前端 未结 4 1951
春和景丽
春和景丽 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: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

提交回复
热议问题