无法运行goinstall

goinstall go-tour.googlecode.com/hg/gotour

运行上面的命令会给我以下消息..


goinstall: encoding/json: go/build: package could not be found locally

goinstall: code.google.com/p/go-tour/pic: cannot download: code.google.com/p/go-tour/pic

goinstall: code.google.com/p/go-tour/tree: cannot download: code.google.com/p/go-tour/tree

goinstall: code.google.com/p/go-tour/wc: cannot download: code.google.com/p/go-tour/wc

goinstall: os/exec: go/build: package could not be found locally

goinstall: net/http: go/build: package could not be found locally

我知道路径设置有问题..我也检查了这篇文章


export PATH=$PATH:/home/sakthi/sakthig/code/my/go/go/bin

export GOROOT=/home/sakthi/sakthig/code/my/go/go

export GOPATH=$GOROOT/bin

这是我当前的路径设置。有什么帮助吗?


汪汪一只猫
浏览 244回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Go