configure: error: No usable m4 in $PATH or /usr/5bin

Posted on 2002-04-09
Last Modified: 2013-12-26
I am trying to compile  the GMP library under windows 2000, using cygwin and mingW.  I know the platform is windows, but the IDE is posix.  

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

Checking the config.log i see the last few lines are:
#define HAVE_NATIVE_mpn_hamdist 1
#define HAVE_NATIVE_M4_function 1
#define HAVE_NATIVE_mpn_popcount 1
#define HAVE_NATIVE_mpn_hamdist 1
#define HAVE_NATIVE_M4_function 1
#define HAVE_NATIVE_mpn_copyi 1
#define HAVE_NATIVE_mpn_copyd 1

configure: exit 1

I use the following command:
$ ./configure --enable-shared --disable-static -build=pentium4-pc-mingw32 CFLAG
S="-mno-cygwin -g -02 -fomit-frame-pointer -mcpu=pentiumpro"

Here's the enviroment stuff:
Proc: Pentium 4
Cygwin Path: e:\cygwin
MingW Path: e:\cygwin\bin\minw\bin
GMP Project is at: e:\cygwin\pack\gmp\gmp-4.0.1
Current $Path:
ive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Common Files/Network Associa
tes/VirusScan Engine/4.0.xx/:/usr/bin/MinGW/bin:/pack/pw32/bin:/:/usr/bin:/cygdr
ive/e/Microsoft Visual Studio/VC98/Bin:/cygdrive/e/Microsoft Visual Studio/Commo

And just to help out a little more I am folling the instructions at:

I followed all the steps, and have tried multiple changes to the ./configure params.....

I been at this for a long time and am getting frustrated.. Any help would be appriciated.
Question by:merith
  • 6
  • 3
LVL 51

Expert Comment

ID: 6928358
can you check with cygwin's find or with NT's built-in serach for m4.exe in the \cygdrive and e:\cygwin directory.
If you find it, add the path to the PATH environment variable of your shell

Author Comment

ID: 6928410
Didn't find an m4.exe, searched for *.m4 as well and those seem to be everywhere...
LVL 51

Expert Comment

ID: 6928521
do you have just  m4
if not, your cygwin installation is incomplete
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.


Author Comment

ID: 6928725
Well I have an m4.c,, m4.h

Those count?

Author Comment

ID: 6928849
I'm reinstalling Cygwin right now.. will also reinstall mingw... let you know if that changes things

Author Comment

ID: 6928982
I have completely reinstalled Cygwin with no luck, still getting exact same error

Author Comment

ID: 6929059
Tired of waiting
LVL 51

Accepted Solution

ahoffmann earned 200 total points
ID: 6929326
there should be a m4.exe or
m4.c, m4.h are the source files, you may try to compile it there (in the directory where you find m4.c), using the Makefile there.

AFAIK any UNIXisch m4.exe might work, try to get one at and place it in some directory of your PATH.

Tired too :-/}

Author Comment

ID: 6930122
Thanks.. I'll give it a shot just to see if I can get it too work.. giving up on if it don't

: )

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
string initialization in java 11 114
viewing source code from eclipse 13 108
Capture logon name 13 74
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question