build eunomia-bpf project
If you want to run the cli, in most cases, you don't need to build your own.
Install Dependencies
You will need clang, libelf and zlib to build the examples, package names may vary across distros.
On Ubuntu/Debian, you need:
On CentOS/Fedora, you need:
install rust toolchain
build bpf-loader-rs
bpf-loader is our core library written in C++17. It has no other dependencies except libbpf.
The recommended compiler is gcc9 or later.
build ecli
After compile the bpf-loader, you can build the cli tool in C++:
reference: https://github.com/libbpf/libbpf-bootstrap
build wasm lib
Please install WASI SDK, download the wasi-sdk release and extract the archive to default path /opt/wasi-sdk if you want to compile c code to wasm.
build compiler
install from package manager
nix
On any distros with nix installed:
build ecc
Run application directly with: