-->

Intel DPDK Compilation Error

2019-08-07 09:38发布

问题:

I'm having problem in compiling the Intel DPDK on my Fedora and I really need that.

This is what I have in my terminal:

[gois@localhost dpdk-1.5.2r1]$ make install T=i686-default-linuxapp-gcc
================== Installing i686-default-linuxapp-gcc
== Build scripts
== Build scripts/testhost
== Build lib
== Build lib/librte_eal
== Build lib/librte_eal/common
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/igb_uio
make: *** /lib/modules/3.11.10-301.fc20.x86_64/build: File or directory not found.  Stop.
make[7]: ** [igb_uio.ko] Error 2
make[6]: ** [igb_uio] Error 2
make[5]: ** [linuxapp] Error 2
make[4]: ** [librte_eal] Error 2
make[3]: ** [lib] Error 2
make[2]: ** [all] Error 2
make[1]: ** [i686-default-linuxapp-gcc_install] Error 2
make: ** [install] Error 2

Can someone help me please?

回答1:

You should install linux headers:

yum install kernel-devel

Then build/ should be a symlink to files needed to build kernel modules.



回答2:

It looks like RTE_KERNELDIR variable is not set correctly. The installer is not able to access kernel level parameters.