-
Notifications
You must be signed in to change notification settings - Fork 63
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
[OS X] ffi path discovery OSX #13
Comments
I think in Mac OS X's case, the equivalent environment variable is |
tried |
You could manually set |
You can make symbolic links: from /opt/local/lib to /usr/local/lib: |
This issue is the result of macOS stripping environment variables that control dyld from the environment whenever a System Integrity Protection protected binary is executed (see the dyld(1) manpage). In this case, the problem is LD_LIBRARY_PATH and DYLD_LIBRARY_PATH being stripped when /usr/bin/env is executed through the luaradio shebang. I'm not sure of a good general solution here, but the way I'm working around it is changing the luaradio shebang from A simple reduction of this problem is:
or, assuming your libraries are in /opt/brew/lib, the actual ffi.load("liquid") failure:
|
Package added to MacPorts with macports/macports-ports#6539 with a wrapper script to fix dynamic library loading in LuaRadio. |
I'm using Macports in OSX so most of my libs are located in
/opt/local
I have to load the shared liquid dsp lib by its full path for luaradio to detect it.
I've tried LD_LIBRARY_PATH to avoid patching with no luck, I'm not very familiar with luajit.
Thanks.
The text was updated successfully, but these errors were encountered: