内容简介:试图在自己机器上安装golang tour,出现了问题。Couldn't find tour files: could not find go-tour content; check $GOROOT and $GOPATH请教一下各位前辈如何解决。上网找了几天,没有找到答案。谢谢先~
试图在自己机器上安装golang tour,出现了问题。
Couldn't find tour files: could not find go-tour content; check $GOROOT and $GOPATH
请教一下各位前辈如何解决。上网找了几天,没有找到答案。谢谢先~
系统环境是这样的:
export GOROOT=/usr/local/go
export GOPATH=/usr/local/GOPATH
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export GO111MODULE=on
安装步骤:
~# go get golang.org/x/tour
go: finding golang.org/x/tour latest
go: finding golang.org/x/tools v0.0.0-20190312164927-7b79afddac43
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: downloading golang.org/x/tour v0.0.0-20190611164551-1f1f3d2b450b
go: extracting golang.org/x/tour v0.0.0-20190611164551-1f1f3d2b450b
go: downloading golang.org/x/tools v0.0.0-20190312164927-7b79afddac43
go: extracting golang.org/x/tools v0.0.0-20190312164927-7b79afddac43
go: downloading golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: extracting golang.org/x/net v0.0.0-20190311183353-d8887717615a
运行:
~# tour
2019/06/17 16:00:33 Couldn't find tour files: could not find go-tour content; check $GOROOT and $GOPATH
我想请教的问题:
1、这个错误怎么修正?
2、试图go mod download安装到其它目录(学习go mod),发现还是下载到$GOPATH/pkg中
正确的操作方法是什么呢?
以上所述就是小编给大家介绍的《安装golang tour,提示错误》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- 草蟒语言重大更新:错误提示以中文展示
- JetBrains DataGrip的JavaFx错误提示及修复
- elasticsearch启动时提示内存不足错误的解决方法
- Laravel Validator 自定义错误返回提示消息以及前端展示
- 远程登陆提示 发生身份验证错误,要求的函数不受支持
- GCC 8 的可用性改进:让错误信息和提示更具帮助性
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Remote
Jason Fried、David Heinemeier Hansson / Crown Business / 2013-10-29 / CAD 26.95
The “work from home” phenomenon is thoroughly explored in this illuminating new book from bestselling 37signals founders Fried and Hansson, who point to the surging trend of employees working from hom......一起来看看 《Remote》 这本书的介绍吧!