Skip to content

No package 'libseccomp' found error during runc build #1032

@lizhuqi

Description

@lizhuqi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions