go语言学习笔记——运行报错exec: "gcc": executable file not found in %PATH%
2020-02-01 07:22
3195 查看
go语言运行报错——exec: “gcc”: executable file not found in %PATH%
报错背景:
之前我使用我自己的笔记本写的go语言程序,换了公司的新电脑后,居然报错,后面发现,原来新电脑里我只装了go的环境,不像我的笔记本一样有gcc的环境
报错系统:win10_x64
报错内容:exec: “gcc”: executable file not found in %PATH%
这是因为你的电脑没有gcc的环境
而你的go语言程序包里面的程序用到了C
解决方法:安装gcc环境,即去安装一个mingw_x64
https://sourceforge.net/projects/mingw-w64/files/latest/download
下载完直接安装
我的安装路径如下
D:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin
安装完成之后,记得添加环境变量
右键计算机——属性——高级系统设置——环境变量——点击“系统变量的Path”——编辑——新建——把安装路径添加进入即可
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- exec: "gcc": executable file not found in %PATH%解决办法
- 调试go语言出现:exec: "gcc": executable file not found in %PATH%
- docker启动镜像时报错:exec:"docker-proxy":executable file not found in $PATH
- 调试go语言出现:exec: "gcc": executable file not found in %PATH%
- Go丨语言package github.com/Go-SQL-Driver/MySQL: exec: "git": executable file not found in %PATH%解决方法
- 【解决】OCI runtime exec failed......executable file not found in $PATH": unknown
- exec: "hg": executable file not found in %PATH%
- VSCode调试go语言出现:exec: "gcc": executable file not found in %PATH%
- go exec: "gcc": executable file not found in %PATH%
- Warning: Bison executable not found in PATH
- Bison executable not found in PATH的解决方案(linux[centOS])
- Eclipse + CDT Program "gcc" not found in PATH
- [轉]java学习笔记 【二】 常见错误 Class files on classpath not found or not accessible for
- omnet Program "g++" not found in PATH Program "gcc" not found in PATH
- digits调用出现:ValueError: Caffe executable not found in PATH
- Hive学习2_错误: The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH
- 执行vagrant ssh命令时出现`ssh` executable not found in any directories in the %PATH%.提示的解决办法
- 20170801 java学习笔记 eclipse 莫名报错,ClassNotFound ,FileNotFound
- 在eclipse中运行pygraphviz 错误(ValueError: Program dot not found in path.)
- 【原】java学习笔记 【二】 常见错误 Class files on classpath not found or not accessible for