Mingw-w64 “Cannot download repository.txt” Error

。_饼干妹妹 提交于 2020-03-24 00:05:10

问题


I am trying to install MinGW-w64 in Windows 7.

.

but I keep getting the error:

"Cannot download repository.txt".

I have read multiple threads about this and downloaded multiple .exe files but none of them work for me. I have MATLAB R2016a with the bug to use the Add-ons window. I tried to install MinGW-w64 directly with some work-arounds but nothing worked. So I am trying to install MinGW-w64 directly into Windows 7 and then assign it to MATLAB as the Compiler to enable me to build s-functions in Simulink.

How to fix this problem?


回答1:


I have the same error message:

Cannot download repository.txt

and I have 2 alternative solutions to install MinGW-w64 in windows :

SOLUTION 1:
Install chocolatey. Then type the following command line:

c:> choco install mingw

SOLUTION 2:
Download MinGW build ("native Windows" build). Then I was able to make GFortran work on JetBrain CLion.



来源:https://stackoverflow.com/questions/51747358/mingw-w64-cannot-download-repository-txt-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!