ubuntu18.04 dpdk pktgen 环境安装 - 记一次成功的编译


参考文章: https://www.itread01.com/content/1542834364.html

dpdk 和 pktgen 都在不断的更新中,版本稍微对不上,就会各种坑

使用的版本
dpdk-stable-17.05.2.tar.xz
pktgen-3.4.5.tar.xz


更新 – 2020-9-17 09:37:42
我的环境使用 pktgen-3.5.0.tar.xz 可以直接build成功,没有遇到 3.4.5 的问题


我的环境
ubuntu18.04
4.15.0-91-generic
gcc version 7.5.0


1, 下载
wget http://git.dpdk.org/dpdk-stable/snapshot/dpdk-stable-17.05.2.tar.xz
wget https://git.dpdk.org/apps/pktgen-dpdk/snapshot/pktgen-3.4.5.tar.xz


2, 解压
xz -d dpdk-stable-17.05.2.tar.xz
tar xf dpdk-stable-17.05.2.tar


xz -d pktgen-3.4.5.tar.xz
tar xf pktgen-3.4.5.tar


3, 编译 dpdk
cd dpdk-stable-17.05.2/usertools
./dpdk-setup.sh

选择 [12] x86_64-native-linuxapp-gcc
编译成功log

.....
== Build app/pdump
== Build app/test-crypto-perf
Build complete [x86_64-native-linuxapp-gcc]
Installation cannot run with T defined and DESTDIR undefined
------------

你可能感兴趣的:(linux,tool,linux,ubuntu,负载均衡,运维)