安装dpdk报错eal/eal_memory.c:56:18: fatal error: numa.h: No such file or directory

时间:2024-03-27 22:21:18

== Build lib/librte_eal/linuxapp/eal
  SYMLINK-FILE include/exec-env/rte_kni_common.h
  CC eal.o
  CC eal_hugepage_info.o
  CC eal_memory.o
/home/alipms/dpdkLib/lib/librte_eal/linuxapp/eal/eal_memory.c:56:18: fatal error: numa.h: No such file or directory
 #include <numa.h>

                  ^
compilation terminated.
make[7]: *** [eal_memory.o] Error 1
make[6]: *** [eal] Error 2
make[5]: *** [linuxapp] Error 2
make[4]: *** [librte_eal] Error 2
make[3]: *** [lib] Error 2
make[2]: *** [all] Error 2
make[1]: *** [pre_install] Error 2
make: *** [install] Error 2
[[email protected] dpdkLib]# 

安装dpdk报错eal/eal_memory.c:56:18: fatal error: numa.h: No such file or directory

下载对应的安装包安装即可,在Linux7.4上对应的rpm包为numactl-devel-2.0.9-6.el7_2.x86_64.rpm

rpm -ivh numactl-devel-2.0.9-6.el7_2.x86_64.rpm安装就可以