exec: "gcc": executable file not found in %PATH%
- 这个问题主要是自己系统未安装gcc编译器,下面我们进行gcc安装
- 安装gcc:
由于用的window10 企业版64位操作系统,要下载mingw 64位(官网地址:http://mingw-w64.org/doku.php),下载地址:https://sourceforge.net/projects/mingw-w64/ (32位自行下载) - 下载完成之后进行安装,一步步我那个下走即可,
- 可以在setting处根据系统环境,选择相关配置:
- 设置安装路径
- 配置环境变量:
- 在cmd下,输入gcc -v,出现如下图,说明安装成功:
自己的在使用golang时遇到的实际问题,本方法已经完全解决,如果在安装完成后有遇到问题go get失败出现cc1.exe: sorry, unimplemented: 64-bit mode not compiled in错误,请阅读cc1.exe: sorry, unimplemented: 64-bit mode not compiled解决方案