[英]Cannot install packages in MinGW Installation Manager
I'm looking forward to use Visual Studio Code for C++ Programming. 我期待使用Visual Studio Code进行C ++编程。 I installed MinGW Installation Manager for Windows (32 bit - Windows 7).
我安装了Windows的MinGW Installation Manager(32位-Windows 7)。 In that, I installed the following packages -
在那,我安装了以下软件包-
When I click [Menu] Installation > Apply Changes > Apply, the packages start downloading but after some time, an error occurs: 当我单击[菜单]安装>应用更改>应用时,软件包开始下载,但是一段时间后,会发生错误:
I tried deleting the cache files and running MinGW Installation Manager as administrator, but the error persists. 我尝试删除缓存文件并以管理员身份运行MinGW Installation Manager,但错误仍然存在。
Is there a way with which I can avoid this error, or is there any other way to do C++ Programming in Visual Studio Code (as I like this Editor) ? 有没有一种方法可以避免此错误,或者有其他任何方法可以在Visual Studio Code中进行C ++编程(就像我喜欢的编辑器一样)?
Definitely, Visual Studio handles many features. 绝对,Visual Studio处理许多功能。
One of which is having it's own compiler preconfigured to run on Visual Studio. 其中之一是将其自己的编译器预先配置为在Visual Studio上运行。 To use it you can select C++ project when creating a new project.
要使用它,可以在创建新项目时选择C ++项目。 If you can not see a C++ project category, you should have a "link" that directs you to a tool downloading page where you can look for c++.
如果看不到C ++项目类别,则应该有一个“链接”,该链接将您定向到工具下载页面,您可以在其中找到c ++。
Please see here: https://sourceforge.net/p/mingw/bugs/2340/ 请在这里查看: https : //sourceforge.net/p/mingw/bugs/2340/
TL;DR - SourceForge has an issue with certs which prevents some versions of Windows from downloading from it using MinGW (I encountered this issue on 32-bit XP). TL; DR-SourceForge的证书存在问题,阻止某些版本的Windows使用MinGW从Windows下载(我在32位XP上遇到此问题)。
You can however get the packages you need manually. 但是,您可以手动获取所需的软件包。 Just put them in
放进去
$MINGW_ROOT/var/cache/mingw-get/packages
(where mingw-get.exe itself is in $MINGW_ROOT/bin
). (其中mingw-get.exe本身位于
$MINGW_ROOT/bin
)。 The MinGW GUI will check this location first before trying to fetch from the SourceForge source. 在尝试从SourceForge源获取之前,MinGW GUI将首先检查此位置。 Here is an easy list of all packages: https://qa.debian.org/watch/sf.php/mingw
这是所有软件包的简单列表: https : //qa.debian.org/watch/sf.php/mingw
You can create an .lst
file of all URLs and just grab everything (it's about 900 MB of data) and then use this command to download all: 您可以创建所有URL的
.lst
文件,然后仅获取所有内容(大约900 MB的数据),然后使用以下命令下载所有内容:
wget --no-check-certificate -i MinGW32.lst
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.