10

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?

hermit.crab
  • 852
  • 1
  • 8
  • 20

2 Answers2

16

Try to install numactl-devel:

sudo yum install numactl-devel
Andriy Berestovskyy
  • 8,059
  • 3
  • 17
  • 33
11

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

shrishinde
  • 3,219
  • 1
  • 20
  • 31