英文:
Docker LVM plugin install issues
问题
我正在尝试安装此链接中提供的Docker LVM插件,当我执行make命令时,它抛出以下错误。
我相信它正在寻找Docker go-plugin-helpers,我在这里看到了这些包,但不确定如何在我的GOPATH中安装。
链接:https://github.com/docker/go-plugins-helpers
英文:
im trying to install docker lvm plugin given in this link and when I execute the make command it throws me the following error.
pr@pr-ubuntu:~/ba/docker-lvm-plugin$ make
go-md2man -in man/docker-lvm-plugin.8.md -out docker-lvm-plugin.8
/usr/bin/go build -o docker-lvm-plugin .
utils.go:14:2: cannot find package "github.com/docker/docker/pkg/system" in any of:
/usr/local/go/src/github.com/docker/docker/pkg/system (from $GOROOT)
/home/pr/programming/go/packages/src/github.com/docker/docker/pkg/system (from $GOPATH)
driver.go:10:2: cannot find package "github.com/docker/go-plugins-helpers/volume" in any of:
/usr/local/go/src/github.com/docker/go-plugins-helpers/volume (from $GOROOT)
/home/pr/programming/go/packages/src/github.com/docker/go-plugins-helpers/volume (from $GOPATH)
make: *** [lvm-plugin-build] Error 1
I believe its looking for docker go-plugin-helpers, I see those packages here but not sure how to install in my GOPATH.
答案1
得分: 1
如果你想构建一个Go程序,你应该阅读Go文档,至少要了解基础知识。要安装一个包,可以执行以下命令:
go get github.com/docker/go-plugins-helpers
英文:
If you're trying to build a Go program, you should read the Go documentation, at least the basics. To install a package:
go get github.com/docker/go-plugins-helpers
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论