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

hermit.crab picture hermit.crab · Jan 5, 2018 · Viewed 11.5k times · Source

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?

Answer

Andriy Berestovskyy picture Andriy Berestovskyy · Jan 5, 2018

Try to install numactl-devel:

sudo yum install numactl-devel