12

我想使用 mingw-get-inst-20120421.exe 从 Sourceforge 下载 MinGW C 和 C++ gnu 编译器。它让我可以选择下载预打包的存储库或最新的存储库。当我在卡巴斯基 AV 防火墙后面时,最新的一个失败了。在任何情况下,前一个都失败了。无论如何,他们根本不安装 gcc.exe。这是我的 mingw/bin 目录的图像:

http://img163.imageshack.us/img163/5953/capturephw.jpg

    mingw-get.exe: *** WARNING *** http://prdownloads.sourceforge.net/mingw/pkginfo-0.5-mingw32-beta-20120416-1-bin.tar.xz?download: opened with unexpected status: code = 404
mingw-get.exe: *** WARNING *** please report this to the mingw-get maintainer
mingw-get.exe: *** ERROR *** Get package: http://prdownloads.sourceforge.net/mingw/pkginfo-0.5-mingw32-beta-20120416-1-bin.tar.xz?download: download failed
install: mingw-get-0.5-mingw32-beta-20120416-1-bin.tar.xz
mingw-get.exe: *** ERROR *** required package file is not available
mingw-get.exe: *** ERROR *** cannot install mingw-get-0.5-mingw32-beta-20120416-1-bin.tar.xz
mingw-get.exe: *** ERROR *** due to previous download failure
install: mingw-get-0.5-mingw32-beta-20120416-1-lic.tar.xz
mingw-get.exe: *** ERROR *** required package file is not available
mingw-get.exe: *** ERROR *** cannot install mingw-get-0.5-mingw32-beta-20120416-1-lic.tar.xz
mingw-get.exe: *** ERROR *** due to previous download failure
install: pkginfo-0.5-mingw32-beta-20120416-1-bin.tar.xz
mingw-get.exe: *** ERROR *** required package file is not available
mingw-get.exe: *** ERROR *** cannot install pkginfo-0.5-mingw32-beta-20120416-1-bin.tar.xz
mingw-get.exe: *** ERROR *** due to previous download failure
install: libiconv-1.14-2-mingw32-dll-2.tar.lzma
 installing libiconv-1.14-2-mingw32-dll-2.tar.lzma
install: libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
 installing libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
install: libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
 installing libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
install: libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
 installing libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
install: pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
 installing pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
install: libquadmath-4.6.2-1-mingw32-dll-0.tar.lzma
 installing libquadmath-4.6.2-1-mingw32-dll-0.tar.lzma
install: libgomp-4.6.2-1-mingw32-dll-1.tar.lzma
 installing libgomp-4.6.2-1-mingw32-dll-1.tar.lzma
install: libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
 installing libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
install: libssp-4.6.2-1-mingw32-dll-0.tar.lzma
 installing libssp-4.6.2-1-mingw32-dll-0.tar.lzma
install: libgcc-4.6.2-1-mingw32-dll-1.tar.lzma
 installing libgcc-4.6.2-1-mingw32-dll-1.tar.lzma
install: libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
 installing libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
install: mingwrt-3.20-mingw32-dll.tar.gz
 installing mingwrt-3.20-mingw32-dll.tar.gz
install: w32api-3.17-2-mingw32-dev.tar.lzma
 installing w32api-3.17-2-mingw32-dev.tar.lzma
install: mingwrt-3.20-mingw32-dev.tar.gz
 installing mingwrt-3.20-mingw32-dev.tar.gz
install: binutils-2.22-1-mingw32-bin.tar.lzma
 installing binutils-2.22-1-mingw32-bin.tar.lzma
install: libexpat-2.0.1-1-mingw32-dll-1.tar.gz
 installing libexpat-2.0.1-1-mingw32-dll-1.tar.gz
install: gdb-7.4-2-mingw32-bin.tar.lzma
 installing gdb-7.4-2-mingw32-bin.tar.lzma
install: make-3.82-5-mingw32-bin.tar.lzma
 installing make-3.82-5-mingw32-bin.tar.lzma
install: gcc-4.6.2-1-mingw32-lic.tar.lzma
 installing gcc-4.6.2-1-mingw32-lic.tar.lzma
install: libstdc++-4.6.2-1-mingw32-dll-6.tar.lzma
 installing libstdc++-4.6.2-1-mingw32-dll-6.tar.lzma
install: gcc-core-4.6.2-1-mingw32-bin.tar.lzma
 installing gcc-core-4.6.2-1-mingw32-bin.tar.lzma
install: mingw32-base-2011060500-mingw32-bin.meta
 installing mingw32-base-2011060500-mingw32-bin.meta
install: gcc-4.6.2-1-mingw32-doc.tar.lzma
 installing gcc-4.6.2-1-mingw32-doc.tar.lzma
install: gcc-4.6.2-1-mingw32-lang.tar.lzma
 installing gcc-4.6.2-1-mingw32-lang.tar.lzma
install: gcc-c++-4.6.2-1-mingw32-bin.tar.lzma
 installing gcc-c++-4.6.2-1-mingw32-bin.tar.lzma
4

5 回答 5

3

prdownloads.sourceforge.net URL 通常不起作用。

我的解决方案是在 at 中编辑文件var\lib\mingw-get\data\profile.xml并将<repository uri="...>行更改为:

<repository uri="http://sourceforge.net/projects/mingw/files/Installer/mingw-get/catalogue/%F.xml.lzma/download">
于 2015-02-10T19:47:22.887 回答
2

根据这个问题线程,这可能是 SourceForge 的问题。我今天尝试使用 mingw-get 安装 mingw,但问题仍然存在。

于 2012-05-08T12:27:02.697 回答
2

在尝试使用 GUI 和 CLI 安装程序在 AWS Windows 实例上安装 MinGW 时,我遇到了类似的问题。我尝试了上述“存储库 uri”设置,但这对我没有帮助。

它最终成为 Internet Explorer 的“增强”安全性。一旦我将 https://*.sourceforge.net 添加到我信任的站点,它就可以工作了。

于 2018-06-25T15:18:28.050 回答
0

尝试从 osdn.net 安装它
这是链接:https
://osdn.net/projects/mingw/releases/ 它与 sourceforge 相同,但能够连接和下载
对我和我的朋友有用!

于 2019-07-02T06:08:48.803 回答
0

以管理员身份运行 minGW 设置,这解决了我的问题

于 2020-06-16T13:00:57.100 回答