-
Notifications
You must be signed in to change notification settings - Fork 0
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
Apple M1: homebrew "brew install apaffenholz/polymake/polymake" fails (/usr/local instead of /opt/homebrew) #3
Comments
In fact, after
|
@apaffenholz The brew prefix is hardcoded in https://github.com/apaffenholz/homebrew-polymake/blob/master/Formula/polymake.rb#L638, that should probably be corrected |
Thanks for testing on M1. I have replaced the fixed path with the corresponding env variable from homebrew. This works on intel macs. I don't have a mac with an M1, so I can't test on one. |
Thanks for the quick reaction. |
True. But |
Sorry, this won't work either. And I could have realized this much earlier by reading the output you provided more carefully. The path This has been there for such a long time that I completely forgot about it. Is |
All right, that makes sense.
while in
|
Yes, |
I am available to test whenever you are done with the updating. |
As there aren't any M1-bottles for polymake the formula would compile the sources anyway. So you could instead use the polymake sources from the polymake repo instead. Instructions are here (written for the previous version). The |
Of course in Sage we also have build scripts for polymake; using the existing homebrew bottle is merely a convenience for users. |
I will leave a comment here once I (think I) have fixed this. I won't be able to test myself. |
As Matthias said, I do not really need to compile polymake (I was trying to build SageMath). But I shall test the formula when it is ready and let you know. |
I have the same issue too. |
Hi, is there any progress on this? Perhaps it is above but I couldn't quite follow. |
Not really. We still cannot provide M1/M2 bottles or test the formula. |
Hi, I'm trying to install polymake on my apple M1 as well (with the hope to get it to play nicely with Macaulay2 on apple M1's). The location for brew is /opt/homebrew, not /usr/local, as mentioned above. Is there anything I can test? |
Here is the error I get when I try using brew to install polymake:
There is essentially nothing in Also, I would rather be installing the latest version of polymake (4.9?). @apaffenholz @lkastner I would be willing to try to help get it working on apple M1 macs |
This project is currently more or less unmaintained. I have no recent Mac, and also no Mac with an M1. So I have no posibility to reproduce any errors. I can update the formula for polymake 4.9 . This will, however, most likely not fix the wrong libdir. This location is set by homebrew in the variable |
This should be fixed now. The error was in the configuration of polymake. With the build options defined in the formula the configuration set the homebrew base path to Until the next release of polymake the polymake configure script is patched in the formula. |
It seems to me that
/opt/homebrew/lib
should be picked instead of/usr/local/lib
for the native version of homebrew on Apple M1:The text was updated successfully, but these errors were encountered: