bertiniteam / b2

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

difficulty installing on m1 Mac #196

Open EliseAWalker opened 6 months ago

EliseAWalker commented 6 months ago

unable to install; directories installed by homebrew cannot be found (opt/homebrew not always searched). directories installed from source also cannot be found (e.g. include/eignpy directory)

ofloveandhate commented 6 months ago

Try configuring using this line:

./configure --with-eigen=/opt/homebrew/include

If this doesn't work, please post back and attach the file config.log.

This should work with other library dependencies, too, if you installed them in non-canonical locations. For example --with-eigenpy=/path/to/eigenpy. If you want to see the available options, ./configure -h shows the help menu.

ofloveandhate commented 6 months ago

I have successfully built on this M1 on which I am now typing with boost, boost-python, eigen, eigenpy, automake,autoconf, libtool, mpfr, gmp, numpy all installed on this machine via homebrew.

I'm using a virtual environment to help manage my Python libraries.

ofloveandhate commented 6 months ago

I do recognize that building b2 is a pain. we're working on a CMake build system which should work better with dependencies provided by conda. but that doesn't help you right this moment.

Looking forward to hearing back from you.