0

在 Windows 10-64 上运行 Haskell 平台 8.0.1;一切似乎都很好,但是“cabal install ghc-mod”失败了;(cabal 安装版本 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 上有很多类似的问题报告,但它们都有与此不同的错误(我发现)。

4

0 回答 0