Install DPDK 21.11 for Ubuntu 18.04

发布时间:2023年12月23日

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

文章来源:https://blog.csdn.net/BadBoyHolly/article/details/135173532
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。