Version number mismatch: inconsistency between gmp.h and libgmp

Tanushree Banerjee banerjee.tanushree10 at gmail.com
Thu Apr 26 15:19:33 UTC 2018


I was trying to install NTL library on ubuntu, and after using "make", I
get this error :

GMP version check (6.0.0/6.1.0)
*** version number mismatch: inconsistency between gmp.h and libgmp
Aborted (core dumped)
makefile:346: recipe for target 'setup3' failed
make[1]: *** [setup3] Error 134
make[1]: Leaving directory '/mnt/c/Users/pc-admin/ntl-11.0.0/ntl-11.0.0/src'
makefile:310: recipe for target 'setup-phase' failed
make: *** [setup-phase] Error 2

I saw the posts

https://gmplib.org/list-archives/gmp-discuss/2009-March/003663.html

http://www.mpfr.org/faq.html#undef_ref1

But still that didnt quite help. Currently my usr/local/lib has

XXX at SECURE2:/usr/local/lib$ ls
libgmp.a   libgmp.so     libgmp.so.23.0.3  libmpfr.la  libmpfr.so.6
  libmpir.a   libmpir.so     libmpir.so.23.0.3  python3.5libgmp.la
libgmp.so.23  libmpfr.a         libmpfr.so  libmpfr.so.6.0.1
libmpir.la  libmpir.so.23  pkgconfig

and /usr/local/include has

XXX at SECURE2:/usr/local/include$ ls
gmp.h  mpf2mpfr.h  mpfr.h  mpir.h

Tried changing environment paths as

C_INCLUDE_PATH=usr/local/include
LIBRARY_PATH=usr/local/lib
LD_LIBRARY_PATH=usr/local/lib

Somehow I don't understand how to solve. Any help would be highly
appreciated! Thanks for your patience

Thanks and regards
Tanushree Banerjee,


More information about the gmp-discuss mailing list