Solved

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

Posted on 2002-04-09
9
4,476 Views
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:
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdr
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
n/MSDev98/Bin

And just to help out a little more I am folling the instructions at:
http://www.swox.com/list-archives/gmp/2002-March/000434.html

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.
0
Comment
Question by:merith
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 51

Expert Comment

by:ahoffmann
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
0
 

Author Comment

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

Expert Comment

by:ahoffmann
ID: 6928521
do you have just  m4
if not, your cygwin installation is incomplete
0
Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

 

Author Comment

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

Those count?
0
 

Author Comment

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

Author Comment

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

Author Comment

by:merith
ID: 6929059
Tired of waiting
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 6929326
there should be a m4.exe or m4.com
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 http://www.dosbin.com/ and place it in some directory of your PATH.

Tired too :-/}
0
 

Author Comment

by:merith
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

: )
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

636 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