lizrice / learning-ebpf

Learning eBPF, published by O'Reilly - out now! Here's where you'll find a VM config for the examples, and more
https://www.amazon.com/Learning-eBPF-Programming-Observability-Networking/dp/1098135121
Apache License 2.0
1.19k stars 255 forks source link

Build libbpf/scr fails #10

Closed sherwoodzern closed 1 year ago

sherwoodzern commented 1 year ago

I execute make install in the libbpf/src directory and it fails with the following issue. What am I doing incorrectly?

INSTALL bpf.h libbpf.h btf.h libbpf_common.h libbpf_legacy.h bpf_helpers.h bpf_helper_defs.h bpf_tracing.h bpf_endian.h bpf_core_read.h skel_internal.h libbpf_version.h usdt.bpf.h install: cannot change permissions of ‘/usr/include/bpf’: No such file or directory make: *** [Makefile:157: install_headers] Error 1

lizrice commented 1 year ago

You'll need to be running as root / sudo for the install part to work. Please feel free to re-open this issue if that isn't the problem