2012-02-20 222 views
0

我安装doozerd来源:手动编译doozerd失败

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

$ GOROOT = /家庭/史蒂芬/ src目录/去 $ GOPATH = /家庭/史蒂芬/ src目录/去/ src目录/包装/

当我尝试做./all.sh从GitHub上的doozerd结帐我得到包不能在本地发现的错误..:

. 
    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 

我以为去会找到失踪的要求,并安装它们本身。 我错过了什么?

回答

2

$ GOPATH =

/home/stephan/src/go/src/pkg/意味着旅途工具查找包在 /home/stephan/src/go/src/pkg/src/<import-path>,但是你已经把来源/home/stephan/src/go/src/pkg/github.com/ha/doozerd代替。