首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

google go-tour装配

2012-08-26 
google go-tour安装由于go get code.google.com/p/go-tour/gotour报错:# cd . hg clone -U https://code.

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,直接运行即可

热点排行