Error when configuring gmp

Matteo Monti picture Matteo Monti · Oct 26, 2011 · Viewed 15.1k times · Source

hope this is just a very simple question. Ok, here's what I've done: I wanted to install gmp under my Linux Ubuntu 11.10. I have both g++ and gcc on my system. So I downloaded the latest release from the gmp official site (gmp 5.0.2), extracted it and then, since I need the c++ gmp interface, I simply run:

./configure --enable-cxx

But it keeps working for a while and then prints out:

checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons).

Did I do something wrong? Thank you very much!

Matteo

Answer

ev-br picture ev-br · Oct 26, 2011

try sudo apt-get install m4 and rerun the ./configure