dpdk 16.04编译报错 坑坑坑
Ubuntu内核4.14.2一、内核头文件中没有pci_enable_msix定义使用dpdk16.04,版本太老,内核太新!二、缺少numa.h文件lib/librte_eal/linuxapp/eal/eal_memory.c:27:18: fatal error: numa.h: No such file or directory查看是否安装numactl:numactl...
·
Ubuntu内核4.14.2
一、内核头文件中没有pci_enable_msix定义
使用dpdk16.04,版本太老,内核太新!
二、缺少numa.h文件
lib/librte_eal/linuxapp/eal/eal_memory.c:27:18: fatal error: numa.h: No such file or directory
查看是否安装numactl:numactl --show
没有安装,执行apt-get install numactl 接着报错
The following NEW packages will be installed:
numactl
0 upgraded, 1 newly installed, 0 to remove and 343 not upgraded.
Need to get 30.1 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 numactl amd64 2.0.11-1ubuntu1.1
Temporary failure resolving 'security.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/n/numactl/numactl_2.0.11-1ubuntu1.1_amd64.deb Temporary failure resolving 'security.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
执行apt-get update报错
Reading package lists... Done
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'cn.archive.ubuntu.com'
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'cn.archive.ubuntu.com'
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'cn.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
查看源:/etc/apt/sources.list
更换成谷歌的等依旧报错!
最后发现DNS没有设置
vi /etc/resolv.conf
nameserver X.X.X.X
再执行apt-get update,成功
安装numactl
apt-get install numactl
numactl --show
出现这个即安装成功
至此,编译dpdk
make install T=x86_64-native-linuxapp-gcc
成功!
【另外】如果是gentoo系统
emerge -s numactl查找源
emerge sys-process/numactl 即可
若不能直接emerge
下载源码numactl-2.0.11.tar.gz
tar zxvf numactl-2.0.11.tar.gz
cd numactl-2.0.11
./configure
make
make install
这样即可安装
更多推荐
已为社区贡献1条内容
所有评论(0)