在我的项目中依赖“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"