Difference between revisions of "How to install, build and use XDP related packages"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
=== Installing libbpf === | === Installing libbpf === | ||
− | : | + | :1st: install the libelf library |
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
Line 14: | Line 14: | ||
</blockquote> | </blockquote> | ||
− | : | + | :2nd: get and install the libbpf related files |
<blockquote> | <blockquote> | ||
Line 20: | Line 20: | ||
export DESTDIR=<installation dir> | export DESTDIR=<installation dir> | ||
export PREFIX="" | export PREFIX="" | ||
− | git clone https: | + | git clone https://github.com/libbpf/libbpf.git |
cd libbpf | cd libbpf | ||
cd src | cd src | ||
Line 26: | Line 26: | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
+ | |||
+ | |||
+ | :3rd: get and install the libbpf related files | ||
+ | |||
+ | <blockquote> | ||
+ | <pre> | ||
+ | export DESTDIR=<installation dir> | ||
+ | export PREFIX="" | ||
+ | git clone https://github.com/xdp-project/xdp-tools.git | ||
+ | cd xdl-tools | ||
+ | |||
+ | |||
+ | </pre> | ||
+ | </blockquote> | ||
+ | |||
+ | |||
+ | |||
Revision as of 22:58, 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 libbpf related files
export DESTDIR=<installation dir> export PREFIX="" git clone https://github.com/xdp-project/xdp-tools.git cd xdl-tools
- Clone the repository
git clone --recurse-submodules -b v1.50 --depth 1 --shallow-submodules https://github.com/grpc/grpc
- Build the package