Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eal_memory.c:56:18: fatal error: numa.h: No such file or directory

Tags:

centos7

dpdk

When I execute make from the quick start instruction for DPDK, I get the following error:

eal_memory.c:56:18: fatal error: numa.h: No such file or directory

The error comes out even when libnuma is installed already:

>sudo yum install numactl-libs.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * elrepo: mirrors.tuna.tsinghua.edu.cn
Package numactl-libs-2.0.9-6.el7_2.x86_64 already installed and latest version
Nothing to do

I'm using CenOS Linux release 7.3.1611 (Core).

How do I fix this problem?

like image 937
hermit.crab Avatar asked Jan 05 '18 09:01

hermit.crab


2 Answers

numa.h is also part of libnuma package.

Please install libnuma package:

CentOS 6.9: yum install libnuma-devel

Ubuntu: apt-get install libnuma-dev

Looks like on CentOS 7 docker container libnuma-devel is not available. In that case try yum install numactl-devel

like image 86
shrishinde Avatar answered Oct 30 '22 22:10

shrishinde


Try to install numactl-devel:

sudo yum install numactl-devel
like image 29
Andriy Berestovskyy Avatar answered Oct 30 '22 21:10

Andriy Berestovskyy