无法安装ghc-mod

时间:2016-05-29 13:34:40

标签: haskell ghc

我正试图在GHC 8.0.1上使用cabal在Windows 10 x64上安装GHC-MOD:

C:\WINDOWS\system32>cabal install ghc-mod
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ghc-mod-5.5.0.0 (user goal)
trying: djinn-lib-0.0.1.2/installed-I8G... (dependency of djinn-ghc-0.0.2.3)
next goal: mtl (dependency of ghc-mod-5.5.0.0)
rejecting: mtl-2.2.1/installed-6qs... (conflict: mtl =>
transformers==0.5.2.0/installed-0.5..., ghc-mod => transformers<0.5)
rejecting: mtl-2.2.1, mtl-2.2.0.1, mtl-2.2, mtl-2.1.3.1, mtl-2.1.2, mtl-2.1.1,
mtl-2.1, mtl-2.0.1.1, mtl-2.0.1.0, mtl-2.0.0.0, mtl-1.1.1.1, mtl-1.1.1.0,
mtl-1.1.0.2, mtl-1.1.0.1, mtl-1.1.0.0, mtl-1.0 (conflict: djinn-lib =>
mtl==2.2.1/installed-6qs...)
Backjump limit reached (currently 2000, change with --max-backjumps or try to
run with --reorder-goals).

然后改变回跳:

C:\WINDOWS\system32>cabal install ghc-mod --max-backjumps 9999
Resolving dependencies...
Configuring old-time-1.1.0.3...
Failed to install old-time-1.1.0.3
Build log ( C:\Users\xx\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 `/cygdrive/c/Users/xx/AppData/Local/Temp/cabal-tmp-3644/old-time-1.1.0.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
cabal: Leaving directory 'C:\Users\xx\AppData\Local\Temp\cabal-tmp-3644\old-time-1.1.0.3'
cabal: Error: some packages failed to install:
cpphs-1.20.1 depends on old-time-1.1.0.3 which failed to install.
ghc-mod-5.0.0 depends on old-time-1.1.0.3 which failed to install.
haskell-src-exts-1.17.1 depends on old-time-1.1.0.3 which failed to install.
hlint-1.9.32 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

我尝试过安装MinGW + MSYS和Cygwin,但都不行。所有GHC文件夹都在PATH环境变量中。

1 个答案:

答案 0 :(得分:1)

https://developers.google.com/maps/docu

官方说来,ghc-mod没有更新到GHC 8.有一个分支ghc-8,其中一些测试仍然被破坏,但其他的东西应该可行。

ghc-8分支似乎对我有用。它构建,我可以使用它。我在Linux上使用Stack。