How to resolve configure guessing build type failure?

sean picture sean · Jan 26, 2011 · Viewed 45.1k times · Source

When I configure (under cygwin environment), an error occurred, Message are following:

$ ./configure
.................
checking build system type... /bin/sh: ./config.guess: No such file or directory
configure: error: cannot guess build type; you must specify one

How to resolve it? Thanks!!

Answer

Manoj picture Manoj · Jul 22, 2011

search for /usr/share/automake*/config.guess

check the latest version of automake

$ which automake
$ automake --version

find the appropriate automake folder in /usr/share/automake.1.11.1/config.guess

replace config.guess from your build tree with /usr/share/automake.1.11.1/config.guess

(The same may/is usually needed for config.sub.)