Install DPDK 21.11 for Ubuntu 18.04

  1. 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
相关推荐
烟雨书信15 分钟前
Linux中MySQL的逻辑备份与恢复
linux·运维·mysql
wkj00127 分钟前
QuaggaJS 配置参数详解
java·linux·服务器·javascript·quaggajs
藥瓿亭1 小时前
K8S认证|CKS题库+答案| 5.日志审计
linux·运维·docker·云原生·容器·kubernetes·cka
coder_lorraine1 小时前
【Linux系列】Linux用户大揭秘:从“公寓住户”到“社区管理员”的奇幻之旅
linux
藥瓿锻2 小时前
2024 CKA题库+详尽解析| 15、备份还原Etcd
linux·运维·数据库·docker·容器·kubernetes·cka
bbsh20992 小时前
WebFuture:Ubuntu 系统上在线安装.NET Core 8 的步骤
linux·ubuntu·.netcore·webfuture
ZZZKKKRTSAE2 小时前
快速上手Linux全局搜索正则表达式(grep)
linux·服务器·正则表达式
有谁看见我的剑了?2 小时前
stress 服务器压力测试的工具学习
服务器·学习·压力测试
有谁看见我的剑了?2 小时前
stress-ng 服务器压力测试的工具学习
服务器·学习·压力测试
余厌厌厌3 小时前
go语言学习 第9章:映射(Map)
服务器·学习·golang