scipopt / scip

SCIP - Solving Constraint Integer Programs
Other
393 stars 63 forks source link

install fail on m1 mac #25

Closed qiniuweihe closed 1 year ago

qiniuweihe commented 2 years ago

There are a lot of errors like those:

image
fschloesser commented 2 years ago

Dear @qiniuweihe , Can you please provide the steps you executed for us to reproduce the problem? Which package did you download, what was your cmake build command etc? It would also be helpful to have the full cmake output. Thanks, Franziska

RuslanLoboda commented 2 years ago

I got different issue upon installing scip. I have Macbook with M1 chipset and 12.6 version of OS.

My steps are:

Building SoPlex library "/Users/ruslan/Downloads/scipoptsuite-8.0.0/soplex/lib/libsoplex.darwin.arm.gnu.opt.a". Makefile:165: make/make.darwin.arm.gnu.opt: No such file or directory make[2]: ** No rule to make target `make/make.darwin.arm.gnu.opt'. Stop. make[1]: [/Users/ruslan/Downloads/scipoptsuite-8.0.0/soplex/lib/libsoplex.darwin.arm.gnu.opt.a] Error 2 make: *** [scipbinary] Error 2



Should it work with `make` or necessary to call it with `cmake`?
svigerske commented 2 years ago

I think support for macOS on ARM in the ZIMPL buildsystem was added some time later than 8.0.0, maybe hasn't been released yet.

For SoPlex you can get make.darwin.arm.* files from https://github.com/scipopt/soplex/tree/bugfix-60/make, but you will probably need to add similar files for other components of the optsuite. For SCIP, this is at https://github.com/scipopt/scip/tree/v80-bugfix/make. If you want SCIP with SoPlex only, then just disable building ZIMPL, GCG, and UG (ZIMPL=false, etc).

RuslanLoboda commented 2 years ago

@svigerske Thanks for the answer. I've checked v8.0.1 and those files are included there. Now I'm having an issue with absent boost/multiprecision/number.hpp file...

fschloesser commented 2 years ago

@RuslanLoboda what is your boost version, do you have a recent one that installs the file in question?

RuslanLoboda commented 2 years ago

@fschloesser I've already managed compiling binary file by using cmake instead of make. It's not related to boost version because I've checked it locally, installed library contains multiprecision directory and number.hpp file. And env PATH is also in normal condition. I've spend around half of working day to try to do "make" working but without success. Later, when I have free time, I'll try to do it with make but not right now. Everybody, thanks a lot for help and support ! :)

ambros-gleixner commented 1 year ago

It seems the most pressing issue is fixed here and the remaining question is getting make (without cmake) to work. If this is still relevant, I suggest opening a new issue with fails from the latest release.