Difference between revisions of "How to install, build and use XDP related packages"
Jump to navigation
Jump to search
(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...") |
|||
Line 5: | Line 5: | ||
=== Installing libbpf === | === Installing libbpf === | ||
− | :First | + | :First install the libelf library |
<blockquote> | <blockquote> | ||
Line 12: | Line 12: | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
+ | |||
+ | :Second get and install the libbpf related files | ||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
git clone https:///github.com/libbpf/libbpf.git | git clone https:///github.com/libbpf/libbpf.git | ||
− | cd | + | cd libbpf |
+ | cd src | ||
+ | make | ||
export GRPC_INSTALL_DIR=/daqfs/gRPC/installation | export GRPC_INSTALL_DIR=/daqfs/gRPC/installation |
Revision as of 21:56, 19 October 2023
Installing libbpf
- First install the libelf library
sudo apt-get install -y libelf-dev
- Second get and install the libbpf related files
git clone https:///github.com/libbpf/libbpf.git cd libbpf cd src make 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