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.04k stars 235 forks source link

Error while loading shared libraries #318

Closed tbohren closed 3 years ago

tbohren commented 3 years ago

Hi, I installed MoonGen on an Ubuntu 18.04 machine. Everything went fine until the last step of the installation process, where you start the load-latency example. I'm always getting the following error, no matter if I use MoonGen or moongen-simple (and also with the other examples): "./build/MoonGen: error while loading shared libraries: libtbbmalloc.so.2: cannot open shared object file: No such file or directory"

However, I found the missing files under "MoonGen/build/libmoon/tbb_cmake_build/tbb_cmake_build_subdir_release". Now my question is at which location the files should actually be, such that I no longer get above error?

holzingk commented 3 years ago

Hello, does it work when you load the library using LD_PRELOAD?

tbohren commented 3 years ago

Yes, thank you for your fast help. I'm new to linux and did not know this trick.