bertiniteam / b2

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

./configure error #169

Closed jessicasidman closed 1 year ago

jessicasidman commented 1 year ago

I'm trying to install bertini on a mac with an M1 chip running Monterey v 12.5. I'm using homebrew for my package manager.

When I run ./configure at the end I see:

configure: error: unable to find gmp

But when I run brew install gmp I see:

Warning: gmp 6.2.1_1 is already installed and up-to-date. To reinstall 6.2.1_1, run: brew reinstall gmp

Help appreciated!

Thank you!

rsuhendra commented 1 year ago

Hi, I'm also trying to install Bertini on an M1 Mac running 12.5. Using conda as a package manager gives the same issue. To be more specific, when I run "./configure", I also get the error "configure: error: unable to find gmp".

I have installed gmp as instructed in the previous step.

Any help would be appreciated. Thanks!

jessicasidman commented 1 year ago

We managed to complete the installation. The issue is that on a machine with the M1 chip homebrew libraries go into /opt/homebrew/lib instead of /usr/local.

We found that setting these two path variables did the trick

export CPATH=/opt/homebrew/include

export LIBRARY_PATH=/opt/homebrew/lib

then followed instructions from the INSTALL doc in the bertini source to compile from source.

Good luck!

Jessica

On Mon, Aug 15, 2022 at 9:59 PM rsuhendra @.***> wrote:

Hi, I'm also trying to install Bertini on an M1 Mac running 12.5. Using conda as a package manager gives the same issue. To be more specific, when I run "./configure", I also get the error "configure: error: unable to find gmp".

I have installed gmp as instructed in the previous step.

Any help would be appreciated. Thanks!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

-- Jessica Sidman (she/her/hers) Professor of Mathematics on the John S. Kennedy Foundation Department of Mathematics and Statistics Mount Holyoke College 413-538-3251

ofloveandhate commented 1 year ago

Thanks for reporting back, Jessica.

For a real in-package fix, my guess is that the m4 files for finding gmp and other libraries need to be updated. Maybe once the semester gets under way? I'm swamped with course prep at the moment.

This problem likely affects other packages I help maintain, such as Bertini 1, Bertini_real, and Paramotopy. I'm leaving this open until I fix.

But I warn, Bertini 2 is poorly maintained, and I'm the only one who really writes for it (in my non-existent free time). Bertini 1 is the software you should use, if you just want to pick up and use software for solving polynomial systems. Bertini 2 (this repo) is very experimental, and lacks many features that Bertini 1 has.

jessicasidman commented 1 year ago

Thanks! I actually had the same problem installing bertini v1.6, and my reply is based on my 1.6 installation. I took your advice, and abandoned my attempts to install bertini2.

On Tue, Aug 16, 2022 at 12:51 PM silviana amethyst @.***> wrote:

Thanks for reporting back, Jessica.

For a real in-package fix, my guess is that the m4 files for finding gmp and other libraries need to be updated. Maybe once the semester gets under way? I'm swamped with course prep at the moment.

This problem likely affects other packages I help maintain, such as Bertini 1, Bertini_real, and Paramotopy. I'm leaving this open until I fix.

But I warn, Bertini 2 is poorly maintained, and I'm the only one who really writes for it (in my non-existent free time). Bertini 1 is the software you should use, if you just want to pick up and use software for solving polynomial systems. Bertini 2 (this repo) is very experimental, and lacks many features that Bertini 1 has.

— Reply to this email directly, view it on GitHub https://github.com/bertiniteam/b2/issues/169#issuecomment-1216896952, or unsubscribe https://github.com/notifications/unsubscribe-auth/APXYM2RFF2F6ZC2MZHFDMB3VZPBH5ANCNFSM55XWNJNA . You are receiving this because you authored the thread.Message ID: @.***>

-- Jessica Sidman (she/her/hers) Professor of Mathematics on the John S. Kennedy Foundation Department of Mathematics and Statistics Mount Holyoke College 413-538-3251

ofloveandhate commented 1 year ago

Closing as inactive. I was successful in compiling on my M1 mac (I finally got one!) this morning, and I didn't experience any problem finding gmp. The two exports mentioned:

export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib

could potentially prove useful, but it seems like that wasn't necessary for me at this time