Skip to content
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

Explicitly add Homebrew libs to support Apple M1 #253

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

ludwigschwardt
Copy link
Contributor

In the grand old days, Homebrew installed to /usr/local and all was well. Now, however, while Intel Homebrew still does this, Apple Silicon / M1 / M2 Homebrew has gone and picked a new prefix: /opt/homebrew. A good explanation of the rationale is at https://earthly.dev/blog/homebrew-on-m1/. Basically, Homebrew had to admit that Fink and MacPorts were right. 😛

The solution is to call brew --prefix and add those libraries explicitly to the search list. Keep going if brew is not installed.

This addresses #252.

In the grand old days, Homebrew installed to `/usr/local` and all was well.
Now, however, while Intel Homebrew still does this, Apple Silicon / M1 / M2
Homebrew has gone and picked a new prefix: `/opt/homebrew`. A good explanation
of the rationale is at https://earthly.dev/blog/homebrew-on-m1/. Basically,
Homebrew had to admit that Fink and MacPorts were right. :-P

The solution is to call `brew --prefix` and add those libraries explicitly
to the search list. Keep going if brew is not installed.

This addresses #252.
@tammojan tammojan merged commit a5e70a4 into master Dec 4, 2023
1 of 7 checks passed
@tammojan
Copy link
Contributor

tammojan commented Dec 4, 2023

Nice, thanks.

@tammojan tammojan deleted the find-homebrew-m1-libs branch December 4, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants