首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装go-mtpfs时出现"undefined: sync.Pool“错误

安装go-mtpfs时出现"undefined: sync.Pool“错误
EN

Stack Overflow用户
提问于 2014-10-07 13:04:40
回答 1查看 5.7K关注 0票数 9

运行命令

代码语言:javascript
复制
sudo go get github.com/hanwen/go-mtpfs

我得到以下输出:

代码语言:javascript
复制
/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

这是什么意思?我怎么才能解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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版本。

票数 16
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26236734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档