Runc: No package 'libseccomp' found error during runc build

Created on 10 Sep 2016  路  6Comments  路  Source: opencontainers/runc

Following the steps from the release note:

$ # create a 'github.com/opencontainers' in your GOPATH/src
$ cd github.com/opencontainers
$ git clone https://github.com/opencontainers/runc
$ cd runc
$ make
$ sudo make install

It failed in make step with following errors:

$ make
go build -i -ldflags "-X main.gitCommit="99c683a84fcfb0675883dc98eaa8c0bc3311e436" -X main.version=1.0.0-rc1" -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: *** [all] Error 2

Most helpful comment

You can click through with the other pull request from @resouer of course, but for people who just come here from google:

libseccomp is not enough. You need either libseccomp-devel or libseccomp-dev, depending on your OS.

All 6 comments

Does your distribution include the pkg-config information for libseccomp? If not, please get them to do so. If you built libseccomp from scratch, install the libseccomp.pc file available in the source tree.

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 pkg-config in your distribution. Though, the error makes me think that you do have pkg-config installed.

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:
go build -i -ldflags "-X main.gitCommit="f516b5d0821f90515d38e79c4f5d4d221dc0c331" -X main.version=1.0.0-rc1" -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 containinglibseccomp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libseccomp' found
pkg-config: exit status 1
make: *** [all] Error 2

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:

libseccomp is not enough. You need either libseccomp-devel or libseccomp-dev, depending on your OS.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leberknecht picture leberknecht  路  7Comments

ehashman picture ehashman  路  3Comments

jessfraz picture jessfraz  路  3Comments

kolyshkin picture kolyshkin  路  10Comments

reallinfo picture reallinfo  路  7Comments