Wednesday, April 17, 2019

Error: Package libseccomp was not found in the pkg-config search path in go build

Symptom:

  When we test usage of  "github.com/seccomp/libseccomp-golang" , it always error out as below
package libseccomp was not found in the pkg-config search path.
Perhaps you should add the directory containing `libseccomp.pc'

Solution:

It turns out we need to manually compile this libseccomp library from code as it is not included in normal pkg.
  • download released C code from github
  • tar zxvf <release tar file>
  • ./configure
  • make
  • make install
Then we have this library included in our OS, the issue is gone

No comments: