How to resolve configure guessing build type failure?

跟風遠走 提交于 2019-11-27 10:48:12

问题


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!!


回答1:


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.)




回答2:


The error message may also include instructions on how to deal with this. In my case I saw

This script, last modified 2008-01-23, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

In a browser I was able to access those files, save them to to my system, and then overwrite the respective ./config/config.guess and ./config/config.sub files in the package being built.




回答3:


Thanks I got it working.

  • Just go to C:\cygwin64\usr\share\automake-1.11
  • Copy config.guess
  • Paste it to C:\cygwin64\usr\local\src\gateway-1.4.4



回答4:


config.guess and config.sub routines are updated and kept on github; You'll get the web pointers when you run the script,

./config.guess

In my Mingw system, config.sub or .guess were not in the share/../automake-1.11/ tree, I needed to download the updated scripts which worked (when they replaced the old ones).



来源:https://stackoverflow.com/questions/4810996/how-to-resolve-configure-guessing-build-type-failure

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!