emmericp / MoonGen

MoonGen is a fully scriptable high-speed packet generator built on DPDK and LuaJIT. It can saturate a 10 Gbit/s connection with 64 byte packets on a single CPU core while executing user-provided Lua scripts for each packet. Multi-core support allows for even higher rates. It also features precise and accurate timestamping and rate control.
MIT License
1.03k stars 234 forks source link

cannot find -lrte_kni while building #328

Open Rwolkenflitzer opened 1 year ago

Rwolkenflitzer commented 1 year ago

When building MoonGen the compiler does not find -lrte_kni at usr/bin/ld. Probably as a result the interfaces cannot be bound. Is there a workaround for that issue?

-- Configuring done -- Generating done -- Build files have been written to: /home/ekd/MoonGen/build [ 72%] Built target moon [ 75%] Linking CXX executable MoonGen /usr/bin/ld: cannot find -lrte_kni collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/MoonGen.dir/build.make:178: MoonGen] Error 1 make[1]: [CMakeFiles/Makefile2:96: CMakeFiles/MoonGen.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 Trying to bind interfaces, this will fail if you are not root Try sudo ./bind-interfaces.sh if this step fails insmod: ERROR: could not load module ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko: No such file or directory

snopytas commented 1 year ago

I had the same issue under ubuntu 18.04. I solved it by using linux kernel version 4.15 instead of version 5.4