Closed karel-brinda closed 8 months ago
I think this is the issue: https://github.com/Homebrew/brew/issues/13481#issuecomment-1207203483
Also mentioned here: https://earthly.dev/blog/homebrew-on-m1/
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.
on macos
brew install glpk
is not sufficientfor include, I had to add this manually:
-I /opt/homebrew/Cellar/glpk/5.0/include -L /opt/homebrew/Cellar/glpk/5.0/lib