No usable M4 in $PATH or /usr5bin
Asked Answered
A

5

14

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.

Afroamerican answered 6/7, 2012 at 20:7 Comment(1)
Did you build and install m4, or merely download it? If /path/to/bin is in your PATH, what happens when you execute /path/to/bin/m4?Reflexive
P
17

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.

Pledge answered 7/4, 2013 at 21:43 Comment(2)
He asked for get GMP installed for use with code::blocks in Windows. Not debian.Antofagasta
I think I didn't see windows! :pPledge
B
3

If you are using cygwin, the setup installer has a working package of m4. Then there's no need to download m4 or change $PATH.

Byrne answered 28/11, 2015 at 21:20 Comment(0)
Y
2

I came up with your same problem, I solved it by running the Mingw package installer, and search for msys-m4 in the list, select all and then Apply Changes, it should let you ./configure just fine :)

Yablon answered 13/8, 2016 at 3:29 Comment(0)
C
2

Assuming you are on MSYS2 (You seem to have a sh), you can install m4 via pacman -S m4.

Be careful that if you run configure through a shell, that you don't pick WSL's bash accidentally (which is in %System32%/bash.exe). Which is what happened in our build system...

Cameleer answered 22/1, 2021 at 15:6 Comment(0)
D
0

On systemd/rpm based linux system(wsl on Windows also) ,you can go on with yum or dnf. Both have the package in the repos.

sudo dnf install m4

For Windows directly, I you can clone the git repo and compile git, but you should understand the licenses and breaking them.

Divulgate answered 24/6 at 13:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.