构建 runc 源代码时出现错误。

huangapple go评论74阅读模式
英文:

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 &quot;seccomp&quot; -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 &lt;seccomp.h&gt;
                      ^
compilation terminated.
make: *** [all] Error 2

答案1

得分: 4

这看起来像是问题 226

> 这不是一个问题。
你需要安装libseccomp-dev库才能使用seccomp支持构建runc。你仍然可以通过go构建标志禁用它。

PR 220提到:

> 为了启用seccomp支持,你需要在你的平台上安装libseccomp。
> 如果你不想使用seccomp支持构建runc,你可以在运行make时添加BUILDTAGS=&quot;&quot;

英文:

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=&quot;&quot; when running make.

huangapple
  • 本文由 发表于 2016年1月9日 15:52:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/34691076.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定