I am trying to build gdb from source, which version is 11.1. I have configured the GMP including path, but the configure script still report an error.
configure: error: GMP is missing or unusable
I copied the config log.
configure:10433: checking for libgmp
configure:10453: gcc -o conftest -g -O2 conftest.c -lncurses -lm -ldl -lgmp >&5
conftest.c:53:17: fatal error: gmp.h: No such file or directory
My configure command is something like below.
configure --prefix=/home/xxx/ins/gdb_11 --with-gmp-include=/home/xxx/ins/gmp-6.2.1/include --with-gmp-lib=/home/xxx/ins/gmp-6.2.1/lib
What might the problem be?