Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried building GMP 5.0.5, and now when I'm trying to build MPFR, it starts checking for gmp.h and libgmp. The MPFR gives me an error that gmp.h (5.0.5) and libgmp (5.0.2) do not match, and MPFR is giving me the above error during make when it reaches to the gmp stage. how can I fix this problem? Also, is there a way to check if gmp, mpfr or mpc are pre-existing on my machine, and their version numbers?

share|improve this question

I experienced the same problem. I found out that my gcc-4.6.3 somewhat miscompiles it. After upgrading to gcc-4.7 and recompiling gmp-5.0.5, I was able to install mpfr-3.1.1 smoothly (make check passes).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.