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

OSX: Library not loaded: @rpath/libre.19.dylib #2837

Closed
bacterik opened this issue Dec 19, 2023 · 2 comments · Fixed by #2839
Closed

OSX: Library not loaded: @rpath/libre.19.dylib #2837

bacterik opened this issue Dec 19, 2023 · 2 comments · Fixed by #2839

Comments

@bacterik
Copy link

I know there is recent commit, that is supposed to fix this? Yes?
Having problems anyhow. I compile and then package libre and baresip sepretaly with pkg. And it installs in /usr/local/{bin,lib,include}. Tried to update the dyld shared cache, dosnt work. OSX Sonoma 14.2.

What does work is, if I export "DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/lib". Which I've never done before.

dyld[96639]: Library not loaded: @rpath/libre.19.dylib
  Referenced from: <0F43E540-C506-318E-B46D-D2B0C5D2BF02> /usr/local/bin/baresip
  Reason: tried: '/Users/xxx/dev/foo/baresip3/BaresipBuild/pkg/baresip/lib/libre.19.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/xxx/dev/foo/baresip3/BaresipBuild/pkg/baresip/lib/libre.19.dylib' (no such file), '/Users/xxx/dev/foo/baresip3/BaresipBuild/pkg/baresip/lib/libre.19.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/xxx/dev/foo/baresip3/BaresipBuild/pkg/baresip/lib/libre.19.dylib' (no such file)
Abort trap: 6

@sreimers
Copy link
Member

Can you try this PR on main: #2839

It should add linked library paths to rpath

@bacterik
Copy link
Author

Thanks @sreimers. Just tested the PR, works perfect.

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 a pull request may close this issue.

2 participants