CentOS VSCode调试go语言出现:exec: "gcc": executable file not found in PATH

Posted fengxm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS VSCode调试go语言出现:exec: "gcc": executable file not found in PATH相关的知识,希望对你有一定的参考价值。

CentOS VSCode调试go语言出现:exec: "gcc": executable file not found in PATH

 

解决方案:

执行如下命令安装GCC,然后重新启动VSCode即可

sudo yum install gcc #安装GCC
[[email protected]-feng ~]$ which gcc
/usr/bin/gcc  #验证安装完毕

 

以上是关于CentOS VSCode调试go语言出现:exec: "gcc": executable file not found in PATH的主要内容,如果未能解决你的问题,请参考以下文章

VSCode调试go

vscode调试Go语言(简明教程)

vscode调试Go语言(简明教程)

vscode调试的为啥会出现两个错误??

Go 语言开始

Go语言开发-(Part01)