wingw-w64安装时 the file has been downloaded incorrectly!
wingw-w64安装时 the file has been downloaded incorrectly!
参考:https://stackoverflow.com/questions/46455927/mingw-w64-installer-the-file-has-been-downloaded-incorrectly
windows10 开发一个GO项目时使用了cgo,依赖gcc,根据其他博客下载了mingw-w64-installer.exe
在线安装,但下载文件时报了错
解决方法如下:
离线安装MinWG-w64
访问链接https://sourceforge.net/projects/mingw-w64/files/,下载离线包并解压到你想要安装的目录
选择版本后下载
点击下载后正常情况下应该是下载失败的(如果能正常下载应该就不会看见我了),这个时候复制浏览器链接,打开迅雷,新建下载就可以下载了(迅雷yyds)!
- 解压到任意目录,配置环境变量
在环境变量后面要加
/bin
5. 测试
打开cmd/powershell,执行gcc -v
,若正常输出表示没有问题
PS C:\Users\Administrator> gcc -v
Using built-in specs.
COLLECT_GCC=D:\IDE\mingw-w64\i686-8.1.0-release-posix-dwarf-rt_v6-rev0\mingw32\bin\gcc.exe
COLLECT_LTO_WRAPPER=D:/IDE/mingw-w64/i686-8.1.0-release-posix-dwarf-rt_v6-rev0/mingw32/bin/../libexec/gcc/i686-w64-mingw32/8.1.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-8.1.0/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-sjlj-exceptions --with-dwarf2 --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-pkgversion='i686-posix-dwarf-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/lib -L/c/mingw810/prerequisites/i686-zlib-static/lib -L/c/mingw810/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware'
Thread model: posix
gcc version 8.1.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)
总结
简单的来说就是sourceforge出问题了(或者是我们网络本身有问题),wingw-w64-installer.exe
是在线安装,下载的还是sourceforge上面的东西,所以我们就不使用wingw-w64-installer.exe
下载,手动下载解压就可以了;
其次,流程无法访问下载链接我们通过迅雷可以直接下载,如果是网络问题大家就可以使用其他kexueshangwang的方式解决。
如上
wingw-w64安装时 the file has been downloaded incorrectly!相关推荐
- MinGW-w64下载文件失败the file has been downloaded incorrectly
文章目录 前言 (必读) 1 问题背景 2 报错原因 3 解决方案 前言 (必读) 笔者强烈推荐使用 linux平台 搭建C++环境所需的东西,如果是用windows平台,则会出现很多小问题,或者即使 ...
- windows下hadoop安装时出现error Couldn‘t find a package.json file in “D:\\hadoop\hadoop-2.7.7\\sbin“问题
windows下hadoop安装时启动yarn时出现error Couldn't find a package.json file问题 yarn run v1.22.0 error Couldn't ...
- Autopep8 安装时出现的两种报错 failed to create process 和 [Errno 2] No such file or directory
Autopep8 安装时出现的两种报错 1.failed to create process 2.[Errno 2] No such file or directory 小结 关键词: autopep ...
- 使用Simatic_EKB_Install 授权软件安装西门子PLC 授权时提示file access denied
使用Simatic_EKB_Install 授权软件安装西门子PLC 授权时提示file access denied 首先,看盘符是否为C盘 然后使用管理员身份运行Simatic_EKB_Instal ...
- 解决pip安装时出现报错TypeError: unsupported operand type(s) for -=: ‘Retry‘ and ‘int‘
我在Linux下使用pip安装时出现报错: Exception: Traceback (most recent call last):File "/usr/lib/python2.7/dis ...
- VMware虚拟化--ESXi安装时考虑因素
VMware虚拟化--ESXi安装时考虑因素 虚拟化不仅仅是将服务器虚拟化了,同时包括了网络,存储等,所以在搭建虚拟化环境之前一定要规划好虚拟化的架构. 搭建虚拟化环境首先要解决几个问题: 1. 安装 ...
- android app功能 配置,配置安装时分发 | Android 开发者 | Android Developers
借助功能模块,您可以从应用的基本模块中分离某些功能和资源,并将其包含在 app bundle 中.然后,您可以自定义分发选项,以便控制搭载 Android 5.0(API 级别 21)或更高版本的设备 ...
- RAC安装时需要执行4个脚本及意义
RAC安装时需要执行4个脚本 1) $ORACLE_BASE/oraInventory/orainstRoot.sh (clusterware 结束时执行) 2) $CRS_HOME/root.sh ...
- apache安装时的一些术语
apache源码安装时,需要的哪些必须依赖模块? 主要需要apr, apr-util, pcre模块 其中 apr模块时必须的. 如何卸载 源码安装的软件? 在源码 的 解压目录下, 使用 make ...
最新文章
- CSS3学习手记(1) 选择器
- python入门练习题-python基础知识练习题一
- Keras之ML~P:基于Keras中建立的简单的二分类问题的神经网络模型(根据200个数据样本预测新的5+1个样本)——类别预测
- java反射的用途及实现
- log.php(157),Log出现permission Denied的错误
- 基于IP访问控制的局限性
- 树莓派设置NTP同步
- Decode Ways leetcode java
- CH Round #55 - Streaming #6 (NOIP模拟赛day2)解题报告
- java maven导入导出_Java +EasyUI+SpringMvc实现Excle导入导出(上)
- 半监督学习在金融文本分类上的探索和实践
- SRM 515 DIV1 550pt
- H.265编码原理入门
- 天猫店群选哪个类目好?新手朋友做天猫无货源,性价比高的类目
- 12.30天自动登陆
- PDF软件最新版本功能介绍
- 汉字转html实体符号js_HTML字符实体(Character Entities),转义字符串(Escape Sequence) 转...
- Elasticsearch:如何使用 Elasticsearch 和 Python 构建面部识别系统
- 哈希表、红黑树、B树、B+树基础
- 颈椎牵引器的介绍-颈托护颈
热门文章
- 创投赛道细分1.2版,33个主赛道279个细分赛道
- fortran中如何提供计算程序运行时间?
- 丁香园开放医疗数据平台,覆盖药、病、诊、科研等7大应用场景
- android学习笔记(2)--RxJava
- QEMU 上模拟 KZM 开发板
- Linux小项目-行车记录仪项目设计
- 蓝牙配对码配置错误_“看yellow 的时候,连错了蓝牙耳机,结果....”哈哈哈哈我笑到村里通网!!...
- Win10右击个性化后报错“该文件没有与之关联的应用来执行该操作
- oracle 使用 mybatis select in 10000问题怎么解决
- 某宝的登录密码加密--password2