How to install, build and use XDP related packages
Jump to navigation
Jump to search
PAGE UNDER CONSTRUCTION
Installing libbpf
- 1st: install the libelf library
sudo apt-get install -y libelf-dev
- 2nd: get and install the libbpf related files
export DESTDIR=<installation dir> export PREFIX="" git clone https://github.com/libbpf/libbpf.git cd libbpf cd src make install
- 3rd: get and install the libxpd related files
export DESTDIR=<installation dir> export PREFIX="" git clone https://github.com/xdp-project/xdp-tools.git cd xdp-tools
- Follow the instructions in xdp-tools/README.md file for compilation. Note: there is no need to do a git submodule on libbpf.
Instructions are at https://github.com/xdp-project/xdp-tutorial , go to the setup_dependencies.org link at https://github.com/xdp-project/xdp-tutorial/blob/master/setup_dependencies.org
This tells us to
sudo apt install clang llvm libelf-dev libpcap-dev build-essential (but since we already loaded libels-dev) sudo apt install clang llvm libpcap-dev build-essential sudo apt install linux-headers-$(uname -r) (how does xdl-tools find bpftool, we may have to use xdl-tutorial, but we'll see) ./configure
- Clone the repository
git clone --recurse-submodules -b v1.50 --depth 1 --shallow-submodules https://github.com/grpc/grpc
- Build the package