gpt4 book ai didi

go - 从源代码构建 runc 时出错

转载 作者:IT王子 更新时间:2023-10-29 01:59:08 24 4
gpt4 key购买 nike

我在从源代码安装 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

最佳答案

看起来像 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提及:

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.

关于go - 从源代码构建 runc 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34691076/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com