build from source
If you want to run the cli, in most cases, you don't need to build your own.
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:
apt install clang libelf1 libelf-dev zlib1g-devOn CentOS/Fedora, you need:
dnf install clang elfutils-libelf elfutils-libelf-devel zlib-develinstall rust toolchain
curl https://sh.rustup.rs -sSf | sh -sbuild bpf-loader-rs
bpf-loader is our core library written in C++17. It has no other dependencies except libbpf.
make bpf-loader-rs # build ebpf-loader-rsThe recommended compiler is gcc9 or later.
build ecli
After compiling the bpf-loader, you can build the cli tool in C++:
make eclireference: https://github.com/libbpf/libbpf-bootstrap
build wasm lib
make wasm-runtimePlease 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
make eccinstall from package manager
nix
On any distros with nix installed:
build ecc
nix build github:eunomia-bpf/eunomia-bpf#ecc # or ecli, see `nix flake show` for details # or ecliRun application directly with:
nix run github:eunomia-bpf/eunomia-bpf#ecc -- -hopenEuler
sudo dnf search eunomia-bpf
# and installmore details
继续阅读
返回索引
eunomia-bpf:简化并增强eBPF,支持CO-RE[^1]和WebAssembly[^2]
  ![DeepSource](https://deepsource.io/gh/eunomia-bpf/eunomia-bpf/?ref=reposi
上一篇 / 上一页
build on android aarch64
Android上build需要先Installing Debian on Android in Termux
下一篇 / 下一页
Install ecli and ecc
- Install the ecli tool for running eBPF program from the cloud:
- 最后更新
- 2026年2月11日
- 首次发布
- 2025年2月10日
- 贡献者
- ϻisռad Ϙasiϻ, weekendfish
这个页面有帮助吗?