New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No package 'libseccomp' found error during runc build #1032
Comments
Does your distribution include the |
Hi Aleksa, thanks for reply! I've just run sudo apt-get install libseccomp2 to install the libseccomp2, can you tell me how to include the pkg-config information for libseccomp? |
You should install |
I've already installed the latest version of pkg-config. However, still it is saying No pacakge 'libseccomp' found. I am using "sudo apt-get install libseccomp2" to install the libseccomp. Is there any extra command I need to run to set up libseccomp? Build error as below: pkg-config --cflags libseccomp libseccompPackage libseccomp was not found in the pkg-config search path. |
Close this issue as I just build it with make BUILDTAGS="" |
You can click through with the other pull request from @resouer of course, but for people who just come here from google:
|
I got these error when I try to build contaienrd. ``` go build "-mod=vendor" "-buildmode=pie" -tags "seccomp selinux apparmor" -ldflags "-X main.gitCommit="a220b9c6cc100f71ddc67152a12fc04622313dca" -X main.version=1.0.0-rc92+dev " -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 ``` Solved this problem by installing one extra dependency `libseccomp-dev`. I am using Ubuntu 20.04 and everything works well! See also: opencontainers/runc#1032
I got these errors when I try to build containerd: ``` go build "-mod=vendor" "-buildmode=pie" -tags "seccomp selinux apparmor" -ldflags "-X main.gitCommit="a220b9c6cc100f71ddc67152a12fc04622313dca" -X main.version=1.0.0-rc92+dev " -o runc . 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 ``` Solved this problem by installing one extra dependency `libseccomp-dev`. I am using Ubuntu 20.04 and everything works well! See also: opencontainers/runc#1032 Signed-off-by: Jun Lin Chen <webmaster@mc256.com>
Just posting this here in case someone ends up here from search.
The right fix is to install both |
Following the steps from the release note:
It failed in make step with following errors:
The text was updated successfully, but these errors were encountered: