【发布时间】:2016-07-18 14:11:31
【问题描述】:
我正在尝试安装 tidalcycles (http://tidalcycles.org/getting_started.html),但在运行 cabal install tidal 命令时遇到问题。
最初由于 windows10 的兼容性,我遇到了一个问题,所以我安装了 Cygwin 并尝试从他的 shell 运行命令。但后来发生了这种情况:
Andrea@Pc_di_Andrea ~
$ cabal install tidal
Resolving dependencies...
Configuring old-time-1.1.0.3...
Configuring network-2.6.2.1...
Failed to install old-time-1.1.0.3
Build log ( C:\Users\Andrea\AppData\Roaming\cabal\logs\old-time-1.1.0.3.log):
Configuring old-time-1.1.0.3...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... C:\PROGRA~1\HASKEL~1\802E01~1.1\mingw\bin\gcc.exe
checking whether the C compiler works... no
configure: error: in `/tmp/cabal-tmp-8957/old-time-1.1.0.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
cabal: Leaving directory 'C:\cygwin\tmp\cabal-tmp-8957\old-time-1.1.0.3'
Failed to install network-2.6.2.1
Build log ( C:\Users\Andrea\AppData\Roaming\cabal\logs\network-2.6.2.1.log ):
Configuring network-2.6.2.1...
configure: WARNING: unrecognized options: --with-compiler
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gcc... C:\PROGRA~1\HASKEL~1\802E01~1.1\mingw\bin\gcc.exe
checking whether the C compiler works... no
configure: error: in `/tmp/cabal-tmp-8956/network-2.6.2.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
cabal: Leaving directory 'C:\cygwin\tmp\cabal-tmp-8956\network-2.6.2.1'
cabal.exe: Error: some packages failed to install:
hosc-0.15 depends on network-2.6.2.1 which failed to install.
mersenne-random-pure64-0.2.0.5 depends on old-time-1.1.0.3 which failed to
install.
network-2.6.2.1 failed during the configure step. The exception was:
ExitFailure 77
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 77
tidal-0.8 depends on old-time-1.1.0.3 which failed to install.
websockets-0.9.6.2 depends on network-2.6.2.1 which failed to install.
所以,它说
configure: error: C compiler cannot create executables
是问题所在。我正在运行32位版本,并且应该安装c编译器,因为我从系统收到了这个回复:
Andrea@Pc_di_Andrea ~
$ echo; gcc --version; echo; g++ --version;
gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
g++ (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
我是这个“cygwin 环境”的新手,如果我的问题不恰当,我深表歉意,但我阅读了一些关于这个 c 编译器问题的指南,但我完全不明白我做错了什么.
【问题讨论】:
-
Cygwin 与 Linux 无关
-
对不起。我会编辑它。
-
configure 脚本将创建一个日志文件,正如它所告诉您的那样。该日志文件应向您显示 configure 执行的测试的详细信息,该测试导致它得出结论认为您的编译器不起作用 - 它尝试编译的代码、编译命令以及它如何尝试运行编译结果。