Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mingw-w64 "Cannot download repository.txt" Error

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

Running .exe file.

but I keep getting the error:

"Cannot download repository.txt".

Error

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?

like image 352
Luis Matos Avatar asked Sep 12 '25 03:09

Luis Matos


1 Answers

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.

like image 189
Joseph.Pollacco Avatar answered Sep 13 '25 20:09

Joseph.Pollacco