在Go 1.7.5上安装redis.v5

时间:2017-02-07 14:31:26

标签: go

在我的项目中依赖“gopkg.in/redis.v5”

我收到消息:

/usr/local/go/pkg/tool/linux_amd64/link: cannot open file 

/usr/local/go/pkg/linux_amd64/gopkg.in/redis.v5.a: open
/usr/local/go/pkg/linux_amd64/gopkg.in/redis.v5.a: no such file or directory

我命令:go get gopkg.in/redis.v5

但未创建目录/usr/local/go/pkg/linux_amd64/gopkg.in/: 什么是问题?

更新

GOPATH="/home/itcoder/go"

GOROOT="/usr/local/go"

GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"

0 个答案:

没有答案