cabal安装ghc-mod失败

时间:2017-02-17 04:37:15

标签: haskell cabal ghc-mod

在Windows 10-64上运行Haskell平台8.0.1; 一切似乎都很好,但“cabal install ghc-mod”失败了; (cabal-install版本1.24.0.0)

>cabal install ghc-mod
Resolving dependencies...
Configuring old-time-1.1.0.3...
Failed to install old-time-1.1.0.3
Build log ( C:\Users\guthrie\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... e:\PLang\Haskell Platform\8.0.1\mingw\bin\gcc.exe
checking whether the C compiler works... no
configure: error: in `/tmp/cabal-tmp-7812/old-time-1.1.0.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
cabal: Leaving directory 'C:\Users\guthrie\AppData\Local\Temp\cabal-tmp-7812\old-time-1.1.0.3'
cabal: Error: some packages failed to install:
cpphs-1.20.3 depends on old-time-1.1.0.3 which failed to install.
ghc-mod-5.7.0.0 depends on old-time-1.1.0.3 which failed to install.
haskell-src-exts-1.18.2 depends on old-time-1.1.0.3 which failed to install.
hlint-1.9.41 depends on old-time-1.1.0.3 which failed to install.
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 77

然而,gcc编译器似乎运行正常,并且它的目录路径是正确的。

在cabal install ghc.mod上有很多类似的问题报告,但它们都有不同的错误(我发现)。

0 个答案:

没有答案