gobpf icon indicating copy to clipboard operation
gobpf copied to clipboard

Compile example failed

Open qiffang opened this issue 3 years ago • 1 comments

I want to build examples by go build command in docker which the docker was installed bcc

# github.com/iovisor/gobpf/bcc
/root/go/pkg/mod/github.com/iovisor/[email protected]/bcc/module.go:32:10: fatal error: bcc/
bpf_common.h: No such file or directory
 #include <bcc/bpf_common.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.

qiffang avatar Mar 28 '21 08:03 qiffang

You need to install libbcc.

chenhengqi avatar Mar 29 '21 00:03 chenhengqi