dpdk pktgen发包工具编译

本文介绍了如何编译DPDK Pktgen发包工具,包括遇到的错误及解决方法:安装meson和ninja,解决libdpdk找不到问题,安装lua和readline-devel,以及处理lua版本过低和动态库替换的问题。
摘要由CSDN通过智能技术生成

dpdk pktgen发包工具使用

git clone git://dpdk.org/apps/pktgen-dpdk    
​
cd pktgen-dpdk
make

编译方法

dpdk 编译和 例子编译 应用编译

[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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值