No usable M4 in $PATH or /usr5bin

AndroidDev picture AndroidDev · Jul 6, 2012 · Viewed 9.7k times · Source

As part of a long, sordid story whose end goal is simply to get GMP installed for use with code::blocks in Windows, I am trying to configure gmp. I do this with the following command:

./configure --prefix=${gmp_install}

Everything starts out well enough. After a few minutes and a bit of progress, everything grinds to a halt and I get this message:

configure: error: No usable M4 in $PATH or /usr5bin

I don't even know what M4 is, but I discover that it is some sort of macro processor. So I download it, and add the folder to my Path variable. Then I start the configure again, but same result.

Is there something that I need to do to M4 to get it working? I'm truly at a loss. Thanks for your help.

Answer

Abhineet Sharma picture Abhineet Sharma · Apr 7, 2013

If you're using debian based OS, do sudo apt-get install m4. If internet isn't there or you have just the package of m4, copy it in /opt, configure it and later on change the $PATH value to the one you have now.