2014-03-04 111 views
0

我想在使用Cygwin的Windows機器上編譯Corkscrew。現在,每當我嘗試配置它的時候,我得到它指出configure: error: cannot guess build type; you must specify one使用Cygwin編譯Corkscrew時出現配置錯誤

下面是完整的錯誤日誌,對於那些希望看到它誰的錯誤: -

[email protected] ~/corkscrew-2.0 
$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c 
checking whether build environment is sane... yes 
checking whether make sets $(MAKE)... yes 
checking for working aclocal-1.4... found 
checking for working autoconf... found 
checking for working automake-1.4... found 
checking for working autoheader... found 
checking for working makeinfo... found 
checking for gcc... gcc 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.exe 
checking for suffix of executables... .exe 
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ISO C89... none needed 
checking for gcc option to accept ANSI C... none needed 
checking how to run the C preprocessor... gcc -E 
checking for grep that handles long lines and -e... /usr/bin/grep 
checking for egrep... /usr/bin/grep -E 
checking for ANSI C header files... no 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking for function prototypes... yes 
checking for gcc... (cached) gcc 
checking whether we are using the GNU C compiler... (cached) yes 
checking whether gcc accepts -g... (cached) yes 
checking for gcc option to accept ISO C89... (cached) none needed 
checking for gawk... gawk 
checking whether ln -s works... yes 
checking build system type... configure: error: cannot guess build type; you must specify one 

我使用TARGET也試過, BUILD & HOST參數,但它是沒有用的,因爲我得到相同的錯誤。

幫助會在這個問題上:)

+1

你有沒有看過[這](http://stackoverflow.com/questions/4810996/how-to-resolve-configure-guessing-build-type-failure)此[此]( http://unix.stackexchange.com/questions/91722/configure-error-cannot-guess-build-type-you-must-specify-one)鏈接。 – Smitt

回答

2

檢查

$ which automake $ automake --version

搜索automake/usr/share/automake*/config.guess

找到相應的文件夾automake的最新版本,/usr/share/automake.1.11.1/config.guess

理解用你的buil替換config.guess d樹與/usr/share/automake.1.11.1/config.guess