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
相关推荐
会周易的程序员35 分钟前
5Draft(五帝)测试报告
服务器·c++·分布式·raft·共识算法·共识·算力服务器
pingglala44 分钟前
ubuntu-nat模式不能上网解决方法
linux·运维·ubuntu
一技安身1 小时前
【信创】外网aarch64终端安装deepseek Ragflow 迁移至内网银河麒麟服务器
运维·服务器
微软技术分享1 小时前
Ubuntu 本地部署Ollama+OpenWebUI教程
数据库·ubuntu·postgresql
Zixhy2 小时前
多点巡检机器人项目技术总结
linux·c++·机器人·自动驾驶
M哥支付2 小时前
快捷支付 VS 网关支付 安全对比
服务器·网络·其他·微信·金融
2501_928996222 小时前
Agent 开发的 API 选型:从 Function Calling 到多模型协作的中科热备底层逻辑
服务器·重构·gitlab
雯宝2 小时前
7. USB 网络适配器驱动
linux
rest10242 小时前
使用内存探测bpf
linux
重生之我来学Python3 小时前
Docker套装的简介、安装、超级详细教程
linux·docker·容器·eureka·github