How to install, build and use XDP related packages

From epsciwiki
Revision as of 21:53, 19 October 2023 by Timmer (talk | contribs) (Created page with "<font size="+2"> == There are multiple software packages that need to be downloaded, compiled, and installed for XPD-related code to run == === Installing libbpf === :First...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are multiple software packages that need to be downloaded, compiled, and installed for XPD-related code to run

Installing libbpf

First obtain libel
sudo apt-get install -y libelf-dev
git clone https:///github.com/libbpf/libbpf.git
cd lib

export GRPC_INSTALL_DIR=/daqfs/gRPC/installation
export PATH="$GRPC_INSTALL_DIR/bin:$PATH"
export LD_LIBRARY_PATH="$GRPC_INSTALL_DIR/lib:$LD_LIBRARY_PATH"
The alternative is to run a provided bash setup script which does the same thing
/daqfs/gRPC/setupgrpc
Clone the repository
git clone --recurse-submodules -b v1.50 --depth 1 --shallow-submodules https://github.com/grpc/grpc
Build the package