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我知道路径设置有问题。我还检查了这个post
export PATH=$PATH:/home/sakthi/sakthig/code/my/go/go/bin
export GOROOT=/home/sakthi/sakthig/code/my/go/go
export GOPATH=$GOROOT/bin这是我当前的路径设置..有什么帮助吗?
发布于 2011-12-21 05:31:57
Go Tour project最近进行了更新。
Go weekly.2011-11-09发行版将json包重命名为encoding/json。
Go weekly.2011-12-14发行版将go-tour包import路径的命名从"go-tour.googlecode.com/hg/tree"更改为"code.google.com/p/go-tour/tree"。
更新到Go每周版本(Keeping up with releases)。
$ cd $GOROOT/src
$ hg pull
$ hg update weekly
$ ./all.bash然后安装go-tour/tree包。
$ cd $GOROOT
$ goinstall -v -fix code.google.com/p/go-tour/tree
goinstall: open /home/peter/go/goinstall.log: no such file or directory
goinstall: code.google.com/p/go-tour/tree: download
goinstall: cd / && /usr/bin/hg clone https://code.google.com/p/go-tour /home/peter/go/src/pkg/code.google.com/p/go-tour
goinstall: selecting tip
goinstall: cd /home/peter/go/src/pkg/code.google.com/p/go-tour && /usr/bin/hg update
goinstall: code.google.com/p/go-tour/tree: install
goinstall: cd /home/peter/go/src/pkg/code.google.com/p/go-tour/tree && /bin/bash gomake -f- install
$ 发布于 2011-12-21 01:31:38
特别是在weekly.2011-12-14中,goinstall被更新为拒绝不遵循以下格式的google路径:"code.google.com/p/go-tour/tree“
这种格式将失败:“go-our.googlecode.com/hg/tree”
实际版本信息:http://goo.gl/PeXnO
发布于 2011-12-21 00:27:56
$ goinstall go-tour.googlecode.com/hg/gotour
go-tour.googlecode.com/hg/gotour: download failed: unsupported import path;
should be "code.google.com/p/go-tour/gotour"
Run goinstall with -fix to gofix the code. ($GOPATH is not set)
$ goinstall -dashboard=false code.google.com/p/go-tour/gotour
$ (cd ~/go && hg id)
82fdc445f2ff weekly/weekly.2011-12-14
$ https://stackoverflow.com/questions/8578295
复制相似问题