2014-10-07 31 views
9

當運行命令轉到錯誤 「未定義:sync.Pool」 安裝細末mtpfs

sudo go get github.com/hanwen/go-mtpfs 

我得到以下輸出:

/usr/lib/go/src/pkg/github.com/hanwen/go-fuse/fuse/bufferpool.go:41: undefined: sync.Pool 
/usr/lib/go/src/pkg/github.com/hanwen/go-fuse/fuse/bufferpool.go:54: undefined: sync.Pool 
/usr/lib/go/src/pkg/github.com/hanwen/go-fuse/fuse/server.go:44: undefined: sync.Pool 
/usr/lib/go/src/pkg/github.com/hanwen/go-fuse/fuse/server.go:47: undefined: sync.Pool 

這是什麼意思?我怎樣才能解決這個問題?

回答

16

錯誤消息意味着go-fuse庫使用sync.Pool,這是在圍棋1.3中引入(該版本的變化:https://golang.org/doc/go1.3),我懷疑你已經安裝在系統上的執行不是最新版本(比如Debian的穩定(wheezy)它是1.0.2)。爲了使用go-fuse庫,您需要使用至少1.3的Go版本。

相關問題