How can I install go mobile and have it work on windows?

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

How can I install go mobile and have it work on windows?

问题

我在Windows上安装gomobile时遇到了问题,使用命令:go get golang.org/x/mobile/cmd/gomobile

它没有给我任何错误提示,但似乎没有执行任何操作。当我尝试执行gomobile时,出现了以下错误:

'gomobile' 不被识别为内部或外部命令,可执行程序或批处理文件。

英文:

I am having issues installing gomobile on windows with the command :
go get golang.org/x/mobile/cmd/gomobile

It doesn't give me any error but it doesn't seem to be doing anything. When trying to execute gomobile afterwards I get the error:

'gomobile' is not recognized as an internal or external command,
operable program or batch file.

答案1

得分: 1

所以我发现go可执行文件的路径与GOPATH不同。为了找到我的GOPATH,我使用了以下命令:

go env GOPATH

英文:

So I figured the PATH where the go executable is differs from GOPATH. To find what my GOPATH was, I used the command

go env GOPATH

答案2

得分: 0

你是否将gomobile的路径添加到了PATH变量中?请使用批处理命令检查是否已包含在其中。

set PATH
英文:

Have you added the path to gomobile location to your PATH variable?

Check if it is included with batch command

set PATH

huangapple
  • 本文由 发表于 2017年8月5日 20:02:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/45521671.html
匿名

发表评论

匿名网友

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

确定