scip icon indicating copy to clipboard operation
scip copied to clipboard

install fail on m1 mac

Open qiniuweihe opened this issue 2 years ago • 6 comments

There are a lot of errors like those: image

qiniuweihe avatar Sep 06 '22 00:09 qiniuweihe

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

fschloesser avatar Sep 06 '22 10:09 fschloesser

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

My steps are:

  • dowload scipoptsuite v8.0.0 from main site, extracted it
  • come inside the directory scipoptsuite-8.0.0
  • called make.
  • got an issue
/Users/ruslan/Downloads/scipoptsuite-8.0.0/scip/make/make.project:567: *** ZIMPL requires the GMP to be linked. Use either ZIMPL=false or GMP=true.  Stop.
make: *** [scipbinary] Error 2
  • called make GMP=true
  • got an issue
** Creating directory "/Users/ruslan/Downloads/scipoptsuite-8.0.0/scip/lib/static".
** Creating directory "/Users/ruslan/Downloads/scipoptsuite-8.0.0/scip/lib/include/zimplinc".

** 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?

RuslanLoboda avatar Oct 03 '22 19:10 RuslanLoboda

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).

svigerske avatar Oct 03 '22 19:10 svigerske

@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...

RuslanLoboda avatar Oct 03 '22 20:10 RuslanLoboda

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

fschloesser avatar Oct 05 '22 08:10 fschloesser

@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 ! :)

RuslanLoboda avatar Oct 06 '22 08:10 RuslanLoboda

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.

ambros-gleixner avatar Jan 17 '23 11:01 ambros-gleixner