当我在 Vim 的 sudo 用户下安装 vim-go 时:GoInstallBinaries它报告错误:vim-go: gogetdoc not found. Installing github.com/zmb3/gogetdoc to folder /usr/local/go/binError installing github.com/zmb3/gogetdoc: go build github.com/zmb3/gogetdoc: open /usr/local/go/bin/gogetdoc: permission denied^@vim-go: guru not found. Installing golang.org/x/tools/cmd/guru to folder /usr/local/go/binError installing golang.org/x/tools/cmd/guru: go build golang.org/x/tools/cmd/guru: open /usr/local/go/bin/guru: permission denied^@vim-go: golint not found. Installing golang.org/x/lint/golint to folder /usr/local/go/binError installing golang.org/x/lint/golint: go build golang.org/x/lint/golint: open /usr/local/go/bin/golint: permission denied^@vim-go: fillstruct not found. Installing github.com/davidrjenni/reftools/cmd/fillstruct to folder /usr/local/go/binError installing github.com/davidrjenni/reftools/cmd/fillstruct: go build github.com/davidrjenni/reftools/cmd/fillstruct: open /usr/local/go/bin/fillstruct: permission denied^@$GOPATH 是:/home/fred/go:/home/fred/folder1:/home/fred/folder2为什么 vim-go 安装二进制文件到/usr/local/go/bin# sudo 用户权限被拒绝。不是 $GOPATH 中的第一条路径:/家/弗雷德/去
- 2 回答
- 0 关注
- 136 浏览
添加回答
举报
0/150
提交
取消