- install python3 and python3-pip
bash
sudo apt install python3
sudo apt install python3-pip
2.Install Meson and Ninja using pip3. It is advised to install Meson for the user to avoid accessing denial.
bash
pip3 install meson
pip3 install ninja
# recommend this way
pip3 install --user meson
3.export enviorment variable
bash
export PATH=$PATH:$HOME/.local/bin
4.install pkg-config tool
bash
sudo apt-get install pkg-config
5.intsall auxiliary tools
bash
sudo apt-get install python-pyelftools python3-pyelftools
6.download DPDK 21.11 sources by any way, for example, you can download it in wedsite
bash
https://core.dpdk.org/download/
7.unpacked the sources
bash
tar -xf dpdk-21.11.5.tar.xz
8.build sources in download path by meson
bash
meson build
# compile for debug version
meson -Dbuildtype=debug -Dexamples=ALL -Denable_kmods=true build
ninja -C build
sudo ninja -C build install
pkg-config --modversion libdpdk
9.show lib version
bash
A320M-DS2:~/Downloads/dpdk-stable-21.11.5$ pkg-config --modversion libdpdk
21.11.5