I have Ubuntu 13.04 with processor "Intel® Core™2 Duo CPU E8400 @ 3.00GHz × 2 "
I m trying to install mpfr-3.1.2
but the error is coming.
"ERROR! The versions of gmp.h (5.1.3) and libgmp (5.0.5) do not match."
In make
command also it is showing this as warning.
How to resolve it?
Availble
mpfr
version for 13.04 is3.1.1-1
. See packages.ubuntu.com for information.You can install it by :
You are trying to build
mpfr
from source. It depends ongmp
. The version of the header and the library do not match, since they are being read from different places.To avoid this, you can suitably
configure
the build. You will see in the output ofconfigure
whether the versions ofgmp.h
andlibgmp
match or not, there is no need to get the error frommake
.For a proper configuration, run
where
<location where to place mpfr>
is anything you want. E.g., system directories, if you have rights to install there, or under your home directory. I used$HOME/usr/local
, for instance.<location where to look for gmp>
is wheregmp
is installed. It seems there are two versions ofgmp
in your system due to the mismatch mentioned in comments. Either solve that, or build/install your owngmp
.