手动编译doozerd失败

时间:2012-02-20 11:46:58

标签: compilation go

我安装了doozerd来源:

home/stephan/src/go/src/pkg/github.com/ha/doozerd

$ GOROOT = / home / stephan / src / go $ GOPATH = / home / stephan / src / go / src / pkg /

当我尝试在github的doozerd checkout中执行./all.sh时,我无法在本地找到包错误..:

.
    imports github.com/ha/doozerd/peer
    imports github.com/ha/doozerd/web
    imports code.google.com/p/go.net/websocket: /home/stephan/src/go/src/pkg/github.com/ha/doozerd/web/web.go:4:2: package could not be found locally
.
    imports github.com/ha/doozerd/peer
    imports github.com/ha/doozerd/consensus
    imports code.google.com/p/goprotobuf/proto: /home/stephan/src/go/src/pkg/github.com/ha/doozerd/server/conn.go:4:2: package could not be found locally
.
    imports github.com/ha/doozer: /home/stephan/src/go/src/pkg/github.com/ha/doozerd/peer/peer.go:4:2: package could not be found locally

我认为go会找到缺少的要求,并自行安装。 我错过了什么?

1 个答案:

答案 0 :(得分:2)

$ GOPATH =

/home/stephan/src/go/src/pkg/表示go工具查找包 /home/stephan/src/go/src/pkg/src/<import-path>,但您已将来源放在/home/stephan/src/go/src/pkg/github.com/ha/doozerd中。