2017-08-05 35 views
1
與命令窗口安裝gomobile

我有問題: go get golang.org/x/mobile/cmd/gomobile如何安裝移動設備並使其在Windows上工作?

它不給我任何錯誤,但它似乎沒有被做任何事情。當試圖事後執行gomobile我得到的錯誤:

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

回答

0

所以我想的過程,其中去可執行文件是從GOPATH不同。要查找我的GOPATH是,我用命令

go env GOPATH

0

你有沒有添加的路徑gomobile位置到PATH環境變量?

檢查它是否包含在批處理命令

set PATH 
+0

哪裏路徑下載的包?我認爲它會在$ GOPATH/bin中,因爲go命令 –

+0

取決於你是否運行'go build',否則它在src/golang.org - etc – Windys

+0

沒有什麼像src/golang.org:/ –

相關問題