运行 make 命令时出错 [DPDK 中的数据包生成器]
Error while running make command [Packet Generator in DPDK]
我正在尝试在我的系统中安装数据包生成器。我已经从 DPDK.org 下载了数据包生成器。我遵循以下 link 中提到的说明。
当我 运行 make 命令时,我得到以下错误:
/root/DPDK/pktgen-dpdk/app/pktgen-latency.c:17:25: fatal error: rte_bus_pci.h: No such file or directory
compilation terminated.
/root/DPDK/dpdk-stable-17.08.1//mk/internal/rte.compile-pre.mk:138:
recipe for target 'pktgen-latency.o' failed
make[2]: *** [pktgen-latency.o] Error 1
/root/DPDK/dpdk-stable-17.08.1//mk/rte.extapp.mk:47: recipe for
target 'pktgen' failed
make[1]: *** [pktgen] Error 2
/root/DPDK/dpdk-stable-17.08.1//mk/rte.extsubdir.mk:48: recipe for
target 'app' failed
make: *** [app] Error 2
看起来RTE_TARGET设置不正确或者DPDK没有编译。首先我们设置:
export RTE_SDK=<DPDKInstallDir>
export RTE_TARGET=x86_64-native-linuxapp-gcc
然后我们编译DPDK,然后编译Pktgen。
升级DPDK版本解决了这个问题。我使用的是 17.08 版本,后来升级到 17.11
我正在尝试在我的系统中安装数据包生成器。我已经从 DPDK.org 下载了数据包生成器。我遵循以下 link 中提到的说明。
当我 运行 make 命令时,我得到以下错误:
/root/DPDK/pktgen-dpdk/app/pktgen-latency.c:17:25: fatal error: rte_bus_pci.h: No such file or directory
compilation terminated.
/root/DPDK/dpdk-stable-17.08.1//mk/internal/rte.compile-pre.mk:138:
recipe for target 'pktgen-latency.o' failed
make[2]: *** [pktgen-latency.o] Error 1
/root/DPDK/dpdk-stable-17.08.1//mk/rte.extapp.mk:47: recipe for
target 'pktgen' failed
make[1]: *** [pktgen] Error 2
/root/DPDK/dpdk-stable-17.08.1//mk/rte.extsubdir.mk:48: recipe for
target 'app' failed
make: *** [app] Error 2
看起来RTE_TARGET设置不正确或者DPDK没有编译。首先我们设置:
export RTE_SDK=<DPDKInstallDir>
export RTE_TARGET=x86_64-native-linuxapp-gcc
然后我们编译DPDK,然后编译Pktgen。
升级DPDK版本解决了这个问题。我使用的是 17.08 版本,后来升级到 17.11