读书人

google go-tour装配

发布时间: 2012-08-26 16:48:06 作者: rapoo

google go-tour安装
由于

go get code.google.com/p/go-tour/gotour

报错:
# cd .; hg clone -U https://code.google.com/p/go-tour /usr/home/huaying/go/src/pkg/code.google.com/p/go-tourabort: error: EOF occurred in violation of protocolpackage code.google.com/p/go-tour/gotour: exit status 255

还有其它各种错误,总之无法使用go get 安装
只能手动下载安装(已安装Mercurial)
hg clone https://code.google.com/p/go-tour/cp -r go-tour $GOROOT/src/pkg/code.google.com/pcd $GOROOT/src/pkg/code.google.com/p/go-tour/go-tourgo install ./ls -lrt $GOROOT/bin

可以看到有一个gotour,直接运行即可

读书人网 >编程

热点推荐