首先下载dpdk官方安装包dpdk-2.2.0.tar.xz,官方下载地址为:
http://fast.dpdk.org/rel/dpdk-2.2.0.tar.xz
解压:
[root@localhost dingtao]# tar Jxvf dpdk-2.2.0.tar.xz
[root@localhost dingtao]# cd dpdk-2.2.0
[root@localhost dpdk-2.2.0]# echo "export RTE_SDK=`pwd`" > dpdk.rc
[root@localhost dpdk-2.2.0]# echo "export RTE_TARGET=x86_64-native-linuxapp-gcc" >> dpdk.rc
[root@localhost dpdk-2.2.0]# source dpdk.rc需要安装gcc和kernel-devel和lspci。[root@localhost dpdk-2.2.0]# yum install -y gcc
[root@localhost dpdk-2.2.0]# yum install -y kernel-devel-$(uname -r)
[root@localhost dpdk-2.2.0]# yum install pciutils
启动自动安装脚本:[root@localhost dpdk-2.2.0]# ./tools/setup.sh
根据操作系统的版本选择序号进行编译安装:[14] x86_64-native-linuxapp-gcc
[17] Insert IGB UIO module
[19] Insert KNI module
[21] Setup hugepage mappings for NUMA systems
[23] Bind Ethernet device to IGB UIO module
本文介绍了如何安装DPDK,首先从官方地址下载dpdk-2.2.0.tar.xz,然后进行解压。

被折叠的 条评论
为什么被折叠?



