当试图在cygwin中运行./configure时,我收到以下错误:
Wayne@Wayne-PC /cygdrive/c/users/wayne/documents/Minuit2-5.34.14 $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... no checking for gcc... no checking for cc... no checking for cl.exe... cl.exe checking for C compiler default output file name... configure: error: in `/cygdrive/c/users/wayne/documents/Minuit2-5.34.14': configure: error: C compiler cannot create executables See `config.log' for more details.
请注意,我已经安装了cygwin的每个部分,但似乎没有gcc(我认为这是包含的?),所以我将VS12.0目录添加到#Path for cl.exe。
以下是config.log中的所有内容:
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.63. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = Wayne-PC uname -m = i686 uname -r = 1.7.33-2(0.280/5/3) uname -s = CYGWIN_NT-6.3-WOW64 uname -v = 2014-11-13 15:45 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/bin PATH: /cygdrive/c/Program Files (x86)/Intel/iCLS Client PATH: /cygdrive/c/Program Files/Intel/iCLS Client PATH: /cygdrive/c/WINDOWS/system32 PATH: /cygdrive/c/WINDOWS PATH: /cygdrive/c/WINDOWS/System32/Wbem PATH: /cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0 PATH: /cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL PATH: /cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT PATH: /cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL PATH: /cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT PATH: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86 PATH: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64 PATH: /cygdrive/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit PATH: /cygdrive/c/Program Files/Microsoft SQL Server/110/Tools/Binn PATH: /usr/bin PATH: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin PATH: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/lib ## ----------- ## ## Core tests. ## ## ----------- ## configure:2077: checking for a BSD-compatible install configure:2145: result: /usr/bin/install -c configure:2156: checking whether build environment is sane configure:2216: result: yes configure:2357: checking for a thread-safe mkdir -p configure:2396: result: /usr/bin/mkdir -p configure:2409: checking for gawk configure:2425: found /usr/bin/gawk configure:2436: result: gawk configure:2447: checking whether make sets $(MAKE) configure:2473: result: no configure:2600: checking for gcc configure:2630: result: no configure:2693: checking for cc configure:2740: result: no configure:2796: checking for cl.exe configure:2812: found /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe configure:2823: result: cl.exe configure:2859: checking for C compiler version configure:2867: cl.exe --version >&5 Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '--version' cl : Command line error D8003 : missing source filename configure:2871: $? = 2 configure:2878: cl.exe -v >&5 Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '-v' cl : Command line error D8003 : missing source filename configure:2882: $? = 2 configure:2889: cl.exe -V >&5 Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line error D8004 : '/V' requires an argument configure:2893: $? = 2 configure:2916: checking for C compiler default output file name configure:2938: cl.exe conftest.c >&5 Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. conftest.c Microsoft (R) Incremental Linker Version 12.00.21005.1 Copyright (C) Microsoft Corporation. All rights reserved. /out:conftest.exe conftest.obj LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib' configure:2942: $? = 2 configure:2980: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "Minuit2" | #define VERSION "5.34.14" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2986: error: in `/cygdrive/c/users/wayne/documents/Minuit2-5.34.14': configure:2989: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/usr/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_CC=cl.exe ac_cv_prog_make_make_set=no ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /cygdrive/c/users/wayne/documents/Minuit2-5.34.14/config/missing --run
aclocal会-1.11' AMDEPBACKSLASH = '' AMDEP_FALSE = '' AMDEP_TRUE = '' AMTAR ='$ {SHELL} /cygdrive/c/users/wayne/documents/Minuit2-5.34.14/config/missing --run 柏油' AR = '' AUTOCONF ='$ {SHELL} /cygdrive/c/users/wayne/documents/Minuit2-5.34.14/config/missing --run autoconf的” AUTOHEADER ='$ {SHELL} /cygdrive/c/users/wayne/documents/Minuit2-5.34.14/config/missing --run autoheader就把” AUTOMAKE ='$ {SHELL} /cygdrive/c/users/wayne/documents/Minuit2-5.34.14/config/missing --run automake的1.11' AWK ='徒劳无功 CC = 'cl.exe时' CCDEPMODE = '' CFLAGS = '' CPP = '' CPPFLAGS = '' CXX = '' CXXCPP = '' CXXDEPMODE = '' CXXFLAGS = '' CXX_LIB_PATH = '' CYGPATH_W ='cygpath -w' DEFS = '' DEPDIR = '' DSYMUTIL = '' DUMPBIN = '' ECHO_C = '' ECHO_N = ' - N' ECHO_T = '' EGREP = '' EXEEXT = '' fgrep一样= '' GMAKE = '' GREP = '' INSTALL_DATA ='$ {INSTALL} -m 644' INSTALL_PROGRAM = '$ {INSTALL}' INSTALL_SCRIPT = '$ {INSTALL}' INSTALL_STRIP_PROGRAM ='$(install_sh)-c -s' LD = '' LDFLAGS = '' LIBOBJS = '' LIBS = '' LIBSTDCPP = '' libtool的= '' LIPO = '' LN_S = '' LTLIBOBJS = '' MAKEINFO ='$ {SHELL} /cygdrive/c/users/wayne/documents/Minuit2-5.34.14/config/missing --run MAKEINFO” MKDIR_P ='/ usr / bin / mkdir -p' NM = '' NMEDIT = '' objdump的= '' OBJEXT = '' OPENMP_CXXFLAGS = '' OTOOL64 = '' OTOOL = '' PACKAGE = 'Minuit2' PACKAGE_BUGREPORT = '' PACKAGE_NAME = '' PACKAGE_STRING = '' PACKAGE_TARNAME = '' PACKAGE_VERSION = '' PATH_SEPARATOR = ':' RANLIB = '' SED = '' SET_MAKE = 'MAKE =制作' SHELL = '/ bin / sh的' STRIP = '' VERSION = '5.34.14' ac_ct_CC = 'cl.exe时' ac_ct_CXX = '' ac_ct_DUMPBIN = '' am__EXEEXT_FALSE = '' am__EXEEXT_TRUE = '' am__fastdepCC_FALSE = '' am__fastdepCC_TRUE = '' am__fastdepCXX_FALSE = '' am__fastdepCXX_TRUE = '' am__include = '' am__isrc = '' am__leading_dot = '' am__quote = '' am__tar ='$ {AMTAR} chof - “$$ tardir”' am__untar ='$ {AMTAR} xf - ' BINDIR = '$ {exec_prefix} / bin' 的 建立=“” build_alias = '' build_cpu = '' build_os = '' build_vendor = '' DATADIR = '$ {} datarootdir' datarootdir = '$ {PREFIX} /股' docdir = '$ {datarootdir} / DOC / $ {PACKAGE}' dvidir = '$ {} docdir' exec_prefix = 'NONE' 主机=“” host_alias = '' host_cpu = '' host_os = '' host_vendor = '' htmldir = '$ {} docdir' 了includedir = '$ {前缀} /包括' INFODIR = '$ {} datarootdir /信息' install_sh ='$ {SHELL} /cygdrive/c/users/wayne/documents/Minuit2-5.34.14/config/install-sh' LIBDIR = '$ {exec_prefix} / lib中' libexecdir = '$ {exec_prefix} / libexec目录' LOCALEDIR = '$ {datarootdir} /区域设置' 的localstatedir = '$ {PREFIX} / VAR' lt_ECHO = '回响' 迪尔= '$ {} datarootdir /人' mkdir_p ='/ usr / bin / mkdir -p' oldincludedir = '的/ usr /包括' pdfdir = '$ {} docdir' pfk_cxx_lib_path = '' 前缀= 'NONE' program_transform_name = 'S,X,X' psdir = '$ {} docdir' SBINDIR = '$ {exec_prefix} / sbin目录' sharedstatedir = '$ {PREFIX} / COM' SYSCONFDIR = '$ {前缀} /等' target_alias = ''
## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE "Minuit2" #define VERSION "5.34.14" configure: exit 77
有什么建议吗?