1. install python3 and python3-pip
sudo apt install python3
sudo apt install python3-pip
2.install meson and ninja by pip, it adviced to install meson for user to avoid access deny.
pip3 install meson
pip3 install ninja
pip3 install --user meson
3.export enviorment variable
export PATH=$PATH:$HOME/.local/bin
4.install pkg-config tool
sudo apt-get install pkg-config
5.intsall axiruy tools
sudo apt-get install python-pyelftools python3-pyelftools
6.download DPDK 21.11 sources by any way, for example, you can down load in wedsite
7.unpacked the sources
tar -xf dpdk-21.11.5.tar.xz
8.build sources in path by meson
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
A320M-DS2:~/Downloads/dpdk-stable-21.11.5$ pkg-config --modversion libdpdk
21.11.5