bertiniteam / b2

Bertini 2.0: The redevelopment of Bertini in C++.
92 stars 34 forks source link

unable to use the compiled the python bindings #91

Closed ofloveandhate closed 6 years ago

ofloveandhate commented 6 years ago

compilation and installation succeed, but import _pybertini fails, with a complaint about missing boost python.

configure shows the following lines:

checking whether the Boost::Python library is available... yes
checking whether boost_python is the correct library... no
checking whether boost_python-mt is the correct library... no
checking whether boost_python-mt is the correct library... (cached) no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python3 is the correct library... no

indicating that it failed to find Boost.Python at all.

  1. configure should totally fail after failing to find boost_python.
  2. why did it not find? boost-python is installed from Homebrew!
ofloveandhate commented 6 years ago

to answer number 2, the boost-python installed from homebrew uses python2 by default, and to install that for python3, you have to go

brew install boost-python --with-python3
ofloveandhate commented 6 years ago

number 1 leaves something to be desired. indeed, it is upsetting that compilation and installation succeed, but the user is left with a non-functional library. configure should fail if it doesn't find boost.python.

ofloveandhate commented 6 years ago

added fail-to-find error for configure in in ee27a31d69f1022e89532b91f4bce44dbd799d53