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

Compilation doesn't work on OS X with M1 because of different brew paths #62

Closed
karel-brinda opened this issue Jan 8, 2024 · 2 comments · Fixed by #63
Closed

Compilation doesn't work on OS X with M1 because of different brew paths #62

karel-brinda opened this issue Jan 8, 2024 · 2 comments · Fixed by #63

Comments

@karel-brinda
Copy link
Collaborator

karel-brinda commented Jan 8, 2024

on macos brew install glpk is not sufficient

for include, I had to add this manually: -I /opt/homebrew/Cellar/glpk/5.0/include -L /opt/homebrew/Cellar/glpk/5.0/lib

@karel-brinda
Copy link
Collaborator Author

karel-brinda commented Jan 9, 2024

I think this is the issue:
Homebrew/brew#13481 (comment)

Also mentioned here:
https://earthly.dev/blog/homebrew-on-m1/

@karel-brinda karel-brinda changed the title Missing glpk dependency Compilation doesn't work on OS X with M1 because of brew Jan 9, 2024
@karel-brinda karel-brinda changed the title Compilation doesn't work on OS X with M1 because of brew Compilation doesn't work on OS X with M1 because of different brew paths Jan 9, 2024
@karel-brinda
Copy link
Collaborator Author

It seems macOS has no way to globally add a directory in the library search path, and so there is way besides explicitly looking in /opt/homebrew/lib (well, except pkg-config maybe) to find Homebrew libs. I blame Apple for this.

So the paths need to be added manually.

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 a pull request may close this issue.

1 participant