【问题标题】:manual compiling doozerd fails手动编译 doozerd 失败
【发布时间】:2012-02-20 11:46:57
【问题描述】:

我在以下位置安装了 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 结帐中执行 ./all.sh 时,我得到 package could not be found local errors.. :

.
    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 会找到缺少的需求,并自行安装它们。 我错过了什么?

【问题讨论】:

    标签: compilation go


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-07
      • 2021-06-14
      • 2021-01-29
      • 2018-11-06
      • 1970-01-01
      • 2013-02-01
      • 2016-08-16
      • 2015-09-07
      相关资源
      最近更新 更多