GDL crashed after I installed Conda and upgraded all the Homebrew files. I used Claude to fix it and I've attached the heavily edited Claude fix below.
Root cause
If GDL was ever cmake/built from source while Anaconda/conda was on
PATH, the build can locate HDF5 via Anaconda instead of Homebrew, baking
/opt/anaconda3/lib into the GDL binary's LC_RPATH search list — often
ahead of the correct Homebrew HDF5 path.
Fix
install_name_tool -delete_rpath /opt/anaconda3/lib /path/to/gdl
install_name_tool -add_rpath /opt/anaconda3/lib /path/to/gdl
Apple Silicon note: modifying a Mach-O binary with install_name_tool
invalidates its code signature, and macOS on M-series Macs refuses to run
an improperly signed binary. Re-sign it (ad-hoc, no certificate needed)
immediately after patching:
codesign --force -s - /path/to/gdl
GDL crashed after I installed Conda and upgraded all the Homebrew files. I used Claude to fix it and I've attached the heavily edited Claude fix below.
Root cause
If GDL was ever
cmake/built from source while Anaconda/conda was onPATH, the build can locate HDF5 via Anaconda instead of Homebrew, baking/opt/anaconda3/libinto the GDL binary'sLC_RPATHsearch list — oftenahead of the correct Homebrew HDF5 path.
Fix
Apple Silicon note: modifying a Mach-O binary with
install_name_toolinvalidates its code signature, and macOS on M-series Macs refuses to run
an improperly signed binary. Re-sign it (ad-hoc, no certificate needed)
immediately after patching: