Mingw-w64“无法下载repository.txt"错误 [英] Mingw-w64 "Cannot download repository.txt" Error

查看:736
本文介绍了Mingw-w64“无法下载repository.txt"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7中安装MinGW-w64.

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

.

但我不断收到错误消息:

but I keep getting the error:

无法下载repository.txt".

"Cannot download repository.txt".

我已阅读有关此内容的多个线程并下载了多个.exe文件,但是它们都不适合我.我的MATLAB R2016a带有使用加载项"窗口的错误.我尝试通过一些解决方法直接安装MinGW-w64,但没有任何效果.因此,我试图将MinGW-w64直接安装到Windows 7中,然后将其分配给MATLAB作为编译器,以使我能够在Simulink中构建s函数.

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.

如何解决此问题?

推荐答案

我有相同的错误消息:

无法下载repository.txt

我有2个替代解决方案在Windows中安装MinGW-w64:

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

解决方案1 ​​:
安装巧克力.然后键入以下命令行:

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

c:> choco install mingw

解决方案2:
下载 MinGW 版本("Windows本地版本").然后,我就可以在JetBrain CLion上使用GFortran.

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

这篇关于Mingw-w64“无法下载repository.txt"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆