Skip to content

Commit 60d24c4

Browse files
committed
Update BUILDING.md - add dependency libseccomp-dev
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 <[email protected]>
1 parent 803c5f4 commit 60d24c4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

BUILDING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ $ sudo unzip protoc-3.11.4-linux-x86_64.zip -d /usr/local
3838
```
3939

4040
`containerd` uses [Btrfs](https://en.wikipedia.org/wiki/Btrfs) it means that you
41-
need to satisfy this dependencies in your system:
41+
need to satisfy these dependencies in your system:
4242

4343
* CentOS/Fedora: `yum install btrfs-progs-devel`
4444
* Debian/Ubuntu: `apt-get install btrfs-tools`
45-
* Debian Buster/Ubuntu 19.10:
45+
* Debian Buster/Ubuntu 19.10/ Ubuntu 20.04:
4646
`apt-get install btrfs-progs libbtrfs-dev`
4747

4848
At this point you are ready to build `containerd` yourself!
@@ -55,6 +55,12 @@ the system, sometimes it is necessary to build runc directly when working with
5555
container runtime development. You can skip this step if you already have the
5656
correct version of `runc` installed.
5757

58+
`runc` requires `libseccomp`. You may need to install the missing dependencies:
59+
60+
* CentOS/Fedora: `yum install libseccomp libseccomp-devel`
61+
* Debian/Ubuntu: `apt-get install libseccomp libseccomp-dev`
62+
63+
5864
For the quick and dirty installation, you can use the following:
5965

6066
go get github.com/opencontainers/runc

0 commit comments

Comments
 (0)