2012-02-20 226 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代替。