运行命令
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这是什么意思?我怎么才能解决这个问题?
发布于 2014-10-07 13:21:53
错误消息意味着go-fuse库使用了Go 1.3中引入的sync.Pool (对该版本的更改:https://golang.org/doc/go1.3),我怀疑您在系统上安装的Go版本是旧的(例如Debian稳定器(wheezy)是1.0.2)。为了使用go-fuse库,您需要使用至少1.3的Go版本。
https://stackoverflow.com/questions/26236734
复制相似问题