scip
scip copied to clipboard
install fail on m1 mac
There are a lot of errors like those:
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
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
?
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 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 what is your boost version, do you have a recent one that installs the file in question?
@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 ! :)
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.