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

Unable to find libprofiler (m1 macOS) #9

Open
ghost opened this issue Dec 1, 2021 · 1 comment
Open

Unable to find libprofiler (m1 macOS) #9

ghost opened this issue Dec 1, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 1, 2021

I am trying to use yep in my Macbook.

Actually, I wanted to use gperftools.

I installed google-perftools using brew.

% brew install google-perftools
% pkg-config --libs libprofiler
-L/opt/homebrew/Cellar/gperftools/2.9.1_1/lib -lprofiler

When I tried to install yep by typing "python setup.py install", an error message appeared.

error: ImportError: Unable to find libprofiler, please make sure google-perftools is installed on your system

I thought that location of lib profiler in my computer could raise the error to install yep.

I also tried to run following: ctypes.util.find_library('profiler')

It could not find any libprofiler.

How can I fix my problem?

Thank you for reading.

@ghost ghost changed the title Unable to find lib profiler (m1 macOS) Unable to find libprofiler (m1 macOS) Dec 1, 2021
@ferbetanzo
Copy link

I was facing this same issue when installing gperftools in the GitHub CI via brew. The solution I found here was to set the DYLD_LIBRARY_PATH to the lib directory of the installed package, so the libprofiler library could be found by python, i.e.:

export DYLD_LIBRARY_PATH="$(brew --cellar gperftools)/$(brew list --versions gperftools | tr ' ' '\n' | tail -1)/lib"

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

No branches or pull requests

1 participant