运行命令
sudo go get github.com/hanwen/go-mtpfs
Run Code Online (Sandbox Code Playgroud)
我得到以下输出:
/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
Run Code Online (Sandbox Code Playgroud)
这是什么意思?我怎样才能解决这个问题?
fd0*_*fd0 16
错误消息表示go-fuse
库使用sync.Pool
,这是在Go 1.3中引入的(该版本的更改:https://golang.org/doc/go1.3),我怀疑您在系统上安装的Go版本是较旧的(例如在Debian stable(wheezy)上它是1.0.2).要使用该go-fuse
库,您需要使用至少为1.3的Go版本.
归档时间: |
|
查看次数: |
5598 次 |
最近记录: |