Hi All,
I hope this isn't too much of a basic question, I'm trying to install polymake on my mac and I've followed all the steps indicated here (https://polymake.org/doku.php/install/macos), except that when I arrived at the stage "Download polymake", I got an error message when I typed "tar -xvfj polymake-4.9.tar.bz2" into terminal (note on the page it says polymake-4.3 instead of 4.9, I guess this was the latest version when this page was last updated). I got it to work after removing the "j" (typing tar -xvf polymake-4.9.tar.bz2), so now I'm trying to go through the next steps, which is to write:
cd ~/Downloads/polymake-4.9
./configure --without-java
ninja -C build/Opt -j2 install
but I end up with an error message like so:
MacBook-Air-2:polymake-4.9 Chloe$ ./configure --without-java
checking C++ compiler ... ok (g++ is Apple CLANG (roughly 10.0) from Xcode 13.1.6)
checking C++ library ... ok (libc++ 13000, C++ 201402)
checking for package manager ... no package manager specified
determining architecture ... ok (darwin.arm64)
determining compiler flags ... ok
CFLAGS=
CXXFLAGS= -std=c++14 -Wno-logical-op-parentheses -Wno-shift-op-parentheses -Wno-mismatched-tags -Wno-unused-local-typedef -Wno-error=unneeded-internal-declaration -Wshadow -Wconversion -Wno-sign-conversion -Wzero-as-null-pointer-constant
LDFLAGS=
checking gmp installation ... Could not compile a test program checking for the GNU Multiprecision Library (GMP).
The most probable reasons are that the library is installed at a non-standard location,
lacking developer's subpackage or missing at all.
Please refer to the installation instructions at http://www.polymake.org/doku.php/howto/install.
The complete error log follows:
g++ -std=c++14 -Wno-logical-op-parentheses -Wno-shift-op-parentheses -Wno-mismatched-tags -Wno-unused-local-typedef -Wno-error=unneeded-internal-declaration -Wshadow -Wconversion -Wno-sign-conversion -Wzero-as-null-pointer-constant -o /var/folders/ck/4jxlnb5n4lgcs15p685d2v6r0000gn/T//polymake_68463_configure /var/folders/ck/4jxlnb5n4lgcs15p685d2v6r0000gn/T//polymake_68463_configure.cc -lgmp -lc++
/var/folders/ck/4jxlnb5n4lgcs15p685d2v6r0000gn/T//polymake_68463_configure.cc:2:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
^~~~~~~
1 error generated.
MacBook-Air-2:polymake-4.9 Chloe$ ninja -C build/Opt -j2 install
ninja: Entering directory `build/Opt'
ninja: fatal: chdir to 'build/Opt' - No such file or directory
I'm sorry I have very limited knowledge of computers, the most advanced stuff I did before was a bit of java programming, I would really appreciate any kind of help.