【问题标题】:How to install gomobile properly on Windows?如何在 Windows 上正确安装 gomobile?
【发布时间】:2021-08-19 21:42:27
【问题描述】:

我使用的是 Windows 10,安装了 go 1.16.7 windows/amd64。已将 GOPATH 定义为 C:\Users\anta40\Codes\Go.

GOPATH 中,我运行了以下 2 个命令:

go env -w GO111MODULE=auto
go get golang.org/x/mobile/cmd/gomobile

好的,现在让我们运行gomobile

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

嗯..这里缺少什么?

【问题讨论】:

  • 您是否将C:\Users\anta40\Codes\Go\bin 包含在您的PATH 中?
  • @OlegButuzov 啊忘记将其添加到 %PATH% 中。谢谢你:)

标签: go gomobile


【解决方案1】:

您希望在路径变量中包含~/go/bin

Always -bash: gomobile: command not found 回答了类似的问题,但您需要在 Windows 上通过(设置路径和环境变量)(https://www.computerhope.com/issues/ch000549.htm)来实现答案

【讨论】:

    猜你喜欢
    • 2019-09-15
    • 1970-01-01
    • 2015-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多