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

Tests fail to run on macOS because DYLD_LIBRARY_PATH is not set #103

Open
ryandesign opened this issue Oct 24, 2018 · 1 comment
Open

Tests fail to run on macOS because DYLD_LIBRARY_PATH is not set #103

ryandesign opened this issue Oct 24, 2018 · 1 comment

Comments

@ryandesign
Copy link

The test suite fails to run on macOS, because the test programs are trying to use the not-yet-installed libminc library. Here's one example:

Dyld Error Message:
  Library not loaded: /opt/local/lib/libminc2.5.2.0.dylib
  Referenced from: /Users/USER/*/minc_tst
  Reason: image not found

In order to be able to do that on macOS, the DYLD_LIBRARY_PATH environment variable must be set to the path where the not-yet-installed libraries reside.

@vfonov
Copy link
Member

vfonov commented Oct 24, 2018

i think you are building without RPATH during build. MACOSX's security features (SIP) will prevent subprocesses to use shared libraries specified in DYLD_LIBRARY_PATH

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

2 participants