gmp-6.2.1 configuration error while configuring on WSL2 Ubuntu 20.04.6
Marc Glisse
marc.glisse at inria.fr
Sun Jul 2 10:10:23 CEST 2023
On Sat, 1 Jul 2023, philliprusso wrote:
> I have:
>
> checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons).
>
> I don't quite get why I have to sudo ./configure or if I should be providing options here for WSL2 version of Ubuntu 20.04.6 on the Windows Subsystem for Linux. Anyone can help me to resolve this it is because I have to install gcc-11 on Ubuntu WSL2 for a software package that needs it.
The error message is not "you failed, try some random other thing". It
explicitly tells you that it tried to find a program called m4 (which is
necessary for the build) and couldn't find it. So you need to install that
before you can build GMP.
Plugging this exact error message in a search engine leads to
https://stackoverflow.com/q/7902894/1918193 and many others.
Note that since this is Ubuntu, it would be easier to install pre-built
packages with
sudo apt install libgmp-dev
--
Marc Glisse
More information about the gmp-bugs
mailing list