Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a required library #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jason-huh
Copy link

@jason-huh jason-huh commented Jan 6, 2020

Without libtbb-dev, the example, 'sudo ./build/MoonGen examples/l3-load-latency.lua 0 1', generates a following error message:

./build/MoonGen: error while loading shared libraries: libtbbmalloc.so.2: cannot open shared object file: No such file or directory

Running Environment

  • Ubuntu 18.04.3 LTS
  • Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz

Without libtbb-dev, the example, 'sudo ./build/MoonGen examples/l3-load-latency.lua 0 1', generates a following error message:

./build/MoonGen: error while loading shared libraries: libtbbmalloc.so.2: cannot open shared object file: No such file or directory

* Running Environment
Ubuntu 18.04.3 LTS
Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
@emmericp
Copy link
Owner

thank you for your pull request, i'd prefer a different solution. the dependency on libtbb installed on the system is a bug; we embed libtbb and it should use that version.

however, i haven't managed to reproduce this particular issue yet, maybe i need to try with ubuntu

@theleos88
Copy link

Hi, I was also encountering the same problem as iriszero. I guess that the issue appears when using MoonGen with sudo, as I was doing in another machine.

I actually tried to preserve the environment with sudo -E, but it was not working either (very strange that in another machine there is no need to do anything).

In the end, I just did

sudo su; export LD_LIBRARY_PATH=$HOME/MoonGen/build/libmoon/tbb_cmake_build/tbb_cmake_build_subdir_release:$LD_LIBRARY_PATH and run the script as root. I wonder what is the problem in the linked library.

@HypoGump
Copy link

I was also encountering the same problem as iriszero, and theleos88's method doesn't work for me. Installing libtbb on system can be a workaround.

My OS is Ubuntu 18.04.1. It looks like a common problem related to Ubuntu.

@jason-huh
Copy link
Author

@emmericp gentle reminder for the issue.

@Sidiox
Copy link

Sidiox commented Oct 22, 2020

Confirmed here to be happening on fresh clone of MoonGen on Ubuntu 18.04. Theleos88's work around works perfectly for me when running as root.

@JackKuo-tw
Copy link

Ubuntu 20.04 solution:

sudo apt install libtbb2

@Lhahn01 Lhahn01 mentioned this pull request Aug 11, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants