Skip to content
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

Installation fail - MacOS. #14

Closed
Ishaanjolly opened this issue Mar 15, 2022 · 5 comments
Closed

Installation fail - MacOS. #14

Ishaanjolly opened this issue Mar 15, 2022 · 5 comments
Assignees

Comments

@Ishaanjolly
Copy link

Mr Matthias suggested me to create an issue here. I understand that there has have already been a huge amount of issues that have been resolved with regards to installation, but something seems to be going haywire in my installation process and I am very keen to understand why and how to resolve it. Please, if you could see the my doings below.

On downloading scip-8.0.0 from the official website, and following the commands listed here: https://github.com/scipopt/scip/blob/master/INSTALL.md. I get a weird error:

-- Build shared libraries: ON
-- Build type: Release
-- Finding ZLIB
-- Finding ZLIB - found
-- Finding Readline
-- Finding Readline - found
-- Finding GMP
-- Finding GMP - found
-- Finding PAPILO
CMake Error at CMakeLists.txt:298 (find_package):
Could not find a package configuration file provided by "PAPILO" with any
of the following names:

PAPILOConfig.cmake
papilo-config.cmake
Add the installation prefix of "PAPILO" to CMAKE_PREFIX_PATH or set
"PAPILO_DIR" to a directory containing one of the above files. If "PAPILO"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!

I was wondering if you could please help me resolve this?

Many thanks for your time on this.

@fschloesser
Copy link
Contributor

Dear @Ishaanjolly ,
Can you please post the command that you are executing, especially from where you are starting.
The output looks like are only trying to build scip, then you need to specify a path to papilo or set it to off in the cmake command with -DPAPILO=off.
However it could be simpler to just build the whole scipoptsuite (create a cmake build folder in the scipoptsuite directory as opposed to a cmake build folder in scipoptsuite/scip)
Best,
Franziska

@Ishaanjolly
Copy link
Author

Dear Franziska,

Apologies for the delay in my getting back to you. I got very busy with somethings.

Here are the commands I used:

Within scipoptsuite directory, I used the following commands:

mkdir build
cd build
cmake ..
make
make install

Output:

Error: No available formula with the name "bison".
Error: No available formula with the name "flex".
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "2.3", but required is at
  least "2.4.0" (found /usr/bin/bison)
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindBISON.cmake:306 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  zimpl/CMakeLists.txt:88 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/ishaanjolly/Downloads/scipoptsuite-8.0.0/build/CMakeFiles/CMakeOutput.log".
See also "/Users/ishaanjolly/Downloads/scipoptsuite-8.0.0/build/CMakeFiles/CMakeError.log".
(base) Ishaans-MacBook-Pro:build ishaanjolly$ brew install bison==2.4.0
Running `brew update --preinstall`...
fatal: Could not resolve HEAD to a revision
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> New Casks
abbyy-finereader-pdf                     mellel
alpha                                    mysteriumvpn
eliot                                    paddle-easydl
flycast                                  paragon-camptune
gcc-aarch64-embedded                     pingnoo
hepta                                    playdate-simulator
heroic                                   poker-copilot
iptvnator                                prowlarr
irpf2022                                 roonbridge
jetbrains-gateway                        rwts-pdfwriter
libcblite                                supernotes
libcblite-community                      unicopedia-plus
macast                                   write
mediahuman-audio-converter               xemu
==> Updated Casks
Updated 875 casks.
==> Deleted Casks
bitshares           finereader          password-assistant  red
dusty               macfusion           pd-runner           synergy
edenmath            now                 profilemanager
eggplant            optimal-layout      raiderio

Warning: No available formula with the name "bison==2.4.0".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
(base) Ishaans-MacBook-Pro:build ishaanjolly$ cmake .. 
Error: No available formula with the name "bison".
Error: No available formula with the name "flex".
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "2.3", but required is at
  least "2.4.0" (found /usr/bin/bison)
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindBISON.cmake:306 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  zimpl/CMakeLists.txt:88 (find_package) 

I think I should declare here that I was able to sucessfully install SCIP 7.0, and PySCIPOPT along with it. However, I guess the dependencies remained as I continued to install SCIP 8.0. Could you please suggest a way to get past this error and be able to work with SCIP. The bison assertion seems a bit weird as I already have it on my machine.

@fschloesser
Copy link
Contributor

Dear @Ishaanjolly,
The requirements to flex and bison have changed, actually you can see in your output that bison has been found, but a version too old:

CMake Error at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "2.3", but required is at
  least "2.4.0" (found /usr/bin/bison)

As you are on mac, cmake tries to find the necessary packages via brew, but can't seem to succeed. This could be due to your system being a bit too old?
If you don't need ZIMPL then you should be able to resolve the error by adding -DZIMPL=off to your initial cmake call, otherwise you'd need to manually install a suitable version of bison.
Hope this helps,
Best,
Franziska

@fschloesser fschloesser self-assigned this Mar 29, 2022
@ambros-gleixner
Copy link
Member

Hi @Ishaanjolly - has your problem been solved? Please reopen if not.

@soppera
Copy link

soppera commented Apr 6, 2023

EDIT: actually this error was due to CMake not finding TBB. When TBB is not there, the compilation of Papilo in its own directory downloads TBB and build it. But when building scipoptsuite directly this is not the case and, since the TBB dependency is missing it fails. The fix for me was installing TBB.

Initial Version

The test below is kept for reference, but see above.

I get a similar error with SCIP ≥ 8.0.0; to actually build it I need to:

cd ~/Downloads/scipoptsuite-8.0.0
cd papilo
mkdir build
cd build
cmake ..
make -j 4

cd ~/Downloads/scipoptsuite-8.0.0
mkdir build
cd build
cmake ..
  -D PAPILO_DIR=~/Downloads/scipoptsuite-8.0.0/papilo/build \
make -j 4

That is build Papilo in its directory first and then build Scip pointing to the build directory of Papilo.

Maybe I am missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants