nemo icon indicating copy to clipboard operation
nemo copied to clipboard

gyrfalcON in bench5 crashes on mac

Open teuben opened this issue 1 year ago • 3 comments

This is likely a side-effect of their System Integrity Protection (SIP), which can break compatibility with DYLD_LIBRARY_PATH.

Launching a shell (bash or zsh) will not import DYLD_LIBRARY_PATH, and thus programs like gyrfalcON will not run. This is SIP for you. The solution would be

if [ -z $DYLD_LIBRARY_PATH ]; then
   source $NEMO/nemo_start.sh
fi

so it begs the question, why does SIP even exist when you can do this???

One website claims you can undo this (to some effect) using csrutil enable --without debug in a recovery mode (i.e. root?) terminal. `

teuben avatar Feb 18 '25 15:02 teuben

we could just change the build system and build static binaries. We've been doing that on linux since ages, but there's a desire to go back to shared libraries.

teuben avatar Feb 18 '25 16:02 teuben

AI is crazy. I asked the same question, now it says to disable SIP, do this

csrutil disable

teuben avatar Feb 18 '25 17:02 teuben

https://www.fullstaq.com/knowledge-hub/blogs/an-alternative-to-macos-dyld-library-path

seems to offer a useful alternative using rpath.

teuben avatar Feb 18 '25 17:02 teuben