无法运行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

这是我目前的路径设置..任何帮助吗?

--------------解决方案-------------

外出旅游项目最近已经更新。

转到weekly.2011-11-09版本改名为jsonencoding/json

转到weekly.2011-12-14发布改变了命名为go-tourimport路径从"go-tour.googlecode.com/hg/tree""code.google.com/p/go-tour/tree"

更新到围棋每周发布(发布与紧跟)。

$ 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
$

具体在weekly.2011-12-14,goinstall进行了更新,拒绝不按格式谷歌的路径:“code.google.com/p/go-tour/tree”

这种格式会失败:“go-tour.googlecode.com/hg/tree”

实际发布的信息:http://goo.gl/PeXnO

$ 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
$

分类: 时间:2015-03-14 人气:0
本文关键词: goinstall
分享到:

相关文章

Copyright (C) 55228885.com, All Rights Reserved.

55228885 版权所有 京ICP备15002868号

processed in 0.430 (s). 10 q(s)