[ fix ] loading of dylib on macOS Monterey #2078
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
After upgrading to macOS 12 (Monterey) I was unable to run the
idris2
executable that I had previously installed. Instead I was shown the following error:Thanks to @ska80's clarification in INSTALL.md (commit 880981d) I was able to fix the problem. It appears that macOS Monterey requires
DYLD_LIBRARY_PATH
to be set (instead ofLD_LIBRARY_PATH
).In order to make it possible to bootstrap Idris 2 on macOS Monterey from the
main
branch I also needed to update the Chez and Racket bootstrap files: The previous bootstrap files would generate theidris2
shell script with onlyLD_LIBRARY_PATH
specified.Similar error when bootstrapping from Racket: