- Make sure you have installed dependencies:
sudo apt install iproute2 make cmake gcc git libgmp-dev libelf-dev zlib1g-dev libjansson-dev
- Get the code with submodules:
git clone --recursive https://github.com/P4-Research/psabpf.git cd psabpf
- Build dependencies:
./build_libbpf.sh
- Build the code and install binary file:
mkdir build cd build cmake .. make -j4 sudo make install
Note that psabpf-ctl
is statically linked with shipped libbpf
, so there is no need to install this library system-wide.