我想使用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
答案 0 :(得分:3)
prdownloads.sourceforge.net网址通常不起作用。
我的解决方案是在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">
答案 1 :(得分:2)
根据this问题主题,这可能是SourceForge的一个问题。我今天尝试使用mingw-get安装mingw,问题仍然存在。
答案 2 :(得分:1)
尝试使用GUI和CLI安装程序在AWS Windows实例上安装MinGW时遇到类似的问题。我尝试了上述“ repository uri”设置,但这并没有帮助我。
最终成为Internet Explorer的“增强”安全性。将https://*.sourceforge.net添加到我的受信任的站点后,它就起作用了。
答案 3 :(得分:1)
尝试从osdn.net安装它
这里是链接:https://osdn.net/projects/mingw/releases/
与sourceforge相同,但能够连接和下载
为我和我的朋友们工作!
答案 4 :(得分:0)
以管理员身份运行minGW设置,这解决了我的问题