Difference between revisions of "How to install, build and use XDP related packages"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
</blockquote> | </blockquote> | ||
− | + | :3rd: get and install the libxpd related files | |
− | :3rd: get and install the | ||
<blockquote> | <blockquote> | ||
Line 36: | Line 35: | ||
git clone https://github.com/xdp-project/xdp-tools.git | git clone https://github.com/xdp-project/xdp-tools.git | ||
cd xdp-tools | cd xdp-tools | ||
+ | </pre> | ||
+ | </blockquote> | ||
+ | |||
+ | :Follow the instructions in xdp-tools/README.md file for compilation. Note: there is no need to do a git submodule on libbpf. | ||
+ | <blockquote> | ||
+ | <pre> | ||
+ | export DESTDIR=<installation dir> | ||
+ | export PREFIX="" | ||
+ | git clone https://github.com/xdp-project/xdp-tools.git | ||
+ | cd xdp-tools | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
− | |||
Revision as of 23:06, 19 October 2023
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.
export DESTDIR=<installation dir> export PREFIX="" git clone https://github.com/xdp-project/xdp-tools.git cd xdp-tools
- Clone the repository
git clone --recurse-submodules -b v1.50 --depth 1 --shallow-submodules https://github.com/grpc/grpc
- Build the package