intel / intel/pcm

`Library not loaded: @rpath/libPcmMsr.dylib` when running pcm binary from installation directory on macOS

Open
#624 1 comment 6 reactions 0 assignees View on GitHub
help wanted
Dominant language
C++
Stars
3.3k
Forks
528
Avg merge
1h 40m
Merged PRs (30d)
2

Description

If I run any pcm binary from /usr/local/sbin (i.e. the directory they are installed in) I get this error:
````
dyld[3356]: Library not loaded: @rpath/libPcmMsr.dylib
Referenced from: /usr/local/sbin/pcm
Reason: no LC_RPATH's found
````
, while if I run it from pcm/build/bin the error is not generated.
If I point the DYLD_LIBRARY_PATH environment variable to /usr/local/lib/, this problem does not occur.

Isn't it possible to specify the path that the DYLD_LIBRARY_PATH environment variable points to during building?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.