当我从DPDK的quick start指令执行make
时,我得到以下错误:
eal_memory.c:56:18: fatal error: numa.h: No such file or directory
即使已经安装了libnuma,也会出现错误:
>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
我使用的是CenOS Linux版本7.3.1611 (核心)。
如何解决此问题?
发布于 2018-01-05 18:21:01
尝试安装numactl-devel
sudo yum install numactl-devel
发布于 2018-03-07 14:19:15
numa.h也是libnuma
包的一部分。
请安装libnuma包:
CentOS 6.9:yum install libnuma-devel
Ubuntu:apt-get install libnuma-dev
看起来在CentOS 7停靠容器libnuma-devel是不可用的。在这种情况下,尝试使用yum install numactl-devel
https://stackoverflow.com/questions/48110600
复制相似问题