1. CentOS 编译 runc 异常
go build -buildmode=pie  -ldflags "-X main.gitCommit="751f18de2af90495e9c5665b95bfc7adf66ddd57" -X main.version=1.0.0-rc6+dev " -tags "seccomp" -o runc .
# pkg-config --cflags  -- libseccomp libseccomp
Package libseccomp was not found in the pkg-config search path.
Perhaps you should add the directory containing `libseccomp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libseccomp' found
Package libseccomp was not found in the pkg-config search path.
Perhaps you should add the directory containing `libseccomp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libseccomp' found
pkg-config: exit status 1
make: *** [Makefile:33: runc] Error 2

解决办法:

$ yum install libseccomp-devel