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

Home Page:https://www.amazon.com/Learning-eBPF-Programming-Observability-Networking/dp/1098135121

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build libbpf/scr fails

sherwoodzern opened this issue · comments

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

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