dpdk pktgen发包工具使用
git clone git://dpdk.org/apps/pktgen-dpdk cd pktgen-dpdk make
编译方法
[root@localhost pktgen-dpdk]# make >>> Use 'make help' for more commands\n ./tools/pktgen-build.sh build >>> lua_enabled : '-Denable_lua=false' >>> gui_enabled : '-Denable_gui=false' >>> SDK Directory : '/tmp/pktgen-dpdk' >>> Build Directory : '/tmp/pktgen-dpdk/Builddir' >>> Target Directory : '/tmp/pktgen-dpdk/usr' >>> Ninja build in '/tmp/pktgen-dpdk/Builddir' buildtype='release' meson -Dbuildtype=release -Denable_lua=false -Denable_gui=false Builddir ./tools/pktgen-build.sh: line 43: meson: command not found ./tools/pktgen-build.sh: line 53: ninja: command not found
提示出错,安装 meson 和 ninja
[root@localhost pktgen-dpdk]# make >>> Use 'make help' for more commands\n ./tools/pktgen-build.sh build >>> lua_enabled : '-Denable_lua=false' >>> gui_enabled : '-Denable_gui=false' >>> SDK Directory : '/tmp/pktgen-dpdk' >>> Build Directory : '/tmp/pktgen-dpdk/Builddir' >>> Target Directory : '/tmp/pktgen-dpdk/usr' >>> Ninja build in '/tmp/pktgen-dpdk/Builddir' buildtype='release' meson -Dbuildtype=release -Denable_lua=false -Denable_gui=false Builddir The Meson build system Version: 0.55.1 Source dir: /tmp/pktgen-dpdk Build dir: /tmp/pktgen-dpdk/Builddir Build type: native build Program cat found: YES Project name: pktgen Project version: 21.11.0 C compiler for the host machine: cc (gcc 4.8.5 "cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)") C linker for the host machine: cc ld.bfd 2.27-44 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C supports arguments -mavx: YES Compiler for C supports arguments -mavx2: YES Compiler for C supports arguments -Wno-pedantic -Wpedantic: YES Compiler for C supports arguments -Wno-format-truncation -Wformat-truncation: NO Found pkg-config: /usr/bin/pkg-config (0.27.1) Did not find CMake 'cmake' Found CMake: NO Run-time dependency libdpdk found: NO (tried pkgconfig) meson.build:62:0: ERROR: Dependency "libdpdk" not found, tried pkgconfig A full log can be found at /tmp/pktgen-dpdk/Builddir/meson-logs/meson-log.txt ninja: Entering directory `/tmp/pktgen-dpdk/Builddir' ninja: error: loading 'build.ninja': No such file or directory make: *** [build] Error 1