“godep: exec: \”go\”: 在 $PATH 中找不到可执行文件”

huangapple go评论64阅读模式
英文:

godep: exec: "go": executable file not found in $PATH?

问题

我正在尝试运行make run,但出现了这个错误。我不知道如何设置这个。

英文:

I am trying to run make run. But getting this. I do not know to how to set this.

答案1

得分: 2

你需要将路径变量设置为你的Go包安装的位置。通常在Ubuntu上,它安装在/bin文件夹中。所以在你的情况下,你需要将其设置为:

$ export PATH=$PATH:$GOPATH/bin

在这里查看文档:https://golang.org/doc/code.html

英文:

You need to set the path variable to where your go package is installed. Typically on ubuntu is installed on the /bin folder. So in your case you have to set it to:

$ export PATH=$PATH:$GOPATH/bin

Check the documentation here: https://golang.org/doc/code.html

huangapple
  • 本文由 发表于 2016年4月15日 20:06:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/36646697.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定