Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Difficulty installing Sage-10.0 on Mac OS 12.6.8 'gmp.h' file not found

I am trying to install Sage-10.0 on Mac OS 12.6.8, following the instructions at

      https://doc.sagemath.org/html/en/installation/source.html#sec-installation-from-sources

and https://github.com/sagemath/sage/#readme

I got the following fatal error during the "make" stage: Can you tell what I need to do?

[gmpy2-2.1.2] In file included from src/gmpy2.c:500: [gmpy2-2.1.2] ./src/gmpy2.h:79:12: fatal error: 'gmp.h' file not found [gmpy2-2.1.2] # include <gmp.h> [gmpy2-2.1.2] ^~~~~~~ [gmpy2-2.1.2] 1 error generated. [gmpy2-2.1.2] error: command '/usr/bin/gcc' failed with exit code 1 [gmpy2-2.1.2] error: subprocess-exited-with-error [gmpy2-2.1.2] [gmpy2-2.1.2] × python setup.py bdist_wheel did not run successfully. [gmpy2-2.1.2] │ exit code: 1 [gmpy2-2.1.2] ╰─> See above for output. [gmpy2-2.1.2] [gmpy2-2.1.2] note: This error originates from a subprocess, and is likely not a problem with pip. [gmpy2-2.1.2] full command: /Users/stephensalser/sage/sage-10.

I tried to fix it by installing gmp using "brew install gmp" but I got the following message:

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