英文:
Error building runc from source
问题
我在安装 runc 的过程中遇到了问题:
root@ubuntu:/usr/local/go/bin/src/github.com/opencontainers/runc# make
go build -tags "seccomp" -o runc .
# github.com/seccomp/libseccomp-golang
Godeps/_workspace/src/github.com/seccomp/libseccomp-golang/seccomp.go:25:22: fatal error: seccomp.h: No such file or directory
// #include <seccomp.h>
^
compilation terminated.
make: *** [all] Error 2
英文:
I have problem installing runc from source:
root@ubuntu:/usr/local/go/bin/src/github.com/opencontainers/runc# make
go build -tags "seccomp" -o runc .
# github.com/seccomp/libseccomp-golang
Godeps/_workspace/src/github.com/seccomp/libseccomp-golang/seccomp.go:25:22: fatal error: seccomp.h: No such file or directory
// #include <seccomp.h>
^
compilation terminated.
make: *** [all] Error 2
答案1
得分: 4
这看起来像是问题 226:
> 这不是一个问题。
你需要安装libseccomp-dev
库才能使用seccomp
支持构建runc。你仍然可以通过go构建标志禁用它。
PR 220提到:
> 为了启用seccomp
支持,你需要在你的平台上安装libseccomp。
> 如果你不想使用seccomp支持构建runc
,你可以在运行make
时添加BUILDTAGS=""
。
英文:
That looks like issue 226:
> this is not an issue.
You need libseccomp-dev
libraries in order to build runc with seccomp
support. You can still disable this through go build flags.
PR 220 mentions:
> In order to enable seccomp
support you will need to install libseccomp on your platform.
> If you do not with to build runc
with seccomp support you can add BUILDTAGS=""
when running make
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论