Gycwin:c 编译器无法创建可执行文件 - 潮汐周期安装



我正在尝试安装潮汐循环(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:UsersAndreaAppDataRoamingcaballogsold-time-1.1.0.3.log):
Configuring old-time-1.1.0.3...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... C:PROGRA~1HASKEL~1802E01~1.1mingwbingcc.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:cygwintmpcabal-tmp-8957old-time-1.1.0.3'
Failed to install network-2.6.2.1
Build log ( C:UsersAndreaAppDataRoamingcaballogsnetwork-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~1HASKEL~1802E01~1.1mingwbingcc.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:cygwintmpcabal-tmp-8956network-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编译器问题的指南,我根本不明白我做错了什么。

发现问题:我没有完成 Haskell 安装编辑阴谋集团config.file ,使用

extra-prog-path: C:Program FilesHaskell Platform8.0.1msysusrbin
extra-lib-dirs: C:Program FilesHaskell Platform8.0.1mingwlib
extra-include-dirs: C:Program FilesHaskell Platform8.0.1mingwinclude+

正如这个消息来源 https://www.haskell.org/platform/所说。

最新更新