Install DPDK 21.11 for Ubuntu 18.04

1. install python3 and python3-pip

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.

 pip3 install meson
 pip3 install ninja
 # recommend this way 
 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 auxiliary tools

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

https://core.dpdk.org/download/

7.unpacked the sources

tar -xf dpdk-21.11.5.tar.xz

8.build sources in download 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

你可能感兴趣的:(DPDK,ubuntu,linux,服务器)