英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论