Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error building runc from source

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
like image 456
Walid Hanafy Avatar asked Apr 07 '26 12:04

Walid Hanafy


1 Answers

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.

like image 171
VonC Avatar answered Apr 09 '26 08:04

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!