Skip to content

GDL and Conda #2221

Description

@jaymurthy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions