Skip to content

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

Open
@MatteoBax

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: <E938B611-4170-3DD4-81F1-B72C7CEB5EF4> /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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions