Version number mismatch: inconsistency between gmp.h and libgmp

Victor Shoup shoup at cs.nyu.edu
Thu Apr 26 23:15:18 UTC 2018


Your paths are incorrect.
Should be "/usr/local", not "usr/local"
> On Apr 26, 2018, at 5:55 PM, Tanushree Banerjee <banerjee.tanushree10 at gmail.com> wrote:
> 
> As I mentioned in the last but one line I have already done that, but still couldn't  make it work.
> Finally using 
> sudo apt-get install libntl-dev
> Worked for me
> Thanks
> 
> On Thu, 26 Apr 2018, 5:02 p.m. Victor Shoup, <shoup at cs.nyu.edu> wrote:
> This happened to me when installing some other software.
> What it most likely means is that you installed GMP in /usr/local,
> but that GMP is also installed somewhere else by the system.
> The solution is typically to make sure that LD_LIBRARY_PATH includes
> /usr/local/lib.  This will ensure that you get the version of GMP
> that you are expecting.
> 
> > On Apr 26, 2018, at 11:19 AM, Tanushree Banerjee <banerjee.tanushree10 at gmail.com> wrote:
> > 
> > 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,
> > _______________________________________________
> > gmp-discuss mailing list
> > gmp-discuss at gmplib.org
> > https://gmplib.org/mailman/listinfo/gmp-discuss
> 



More information about the gmp-discuss mailing list