簡體   English   中英

無法安裝ghc-mod

[英]Trouble installing ghc-mod

我試圖在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環境變量中。

https://github.com/DanielG/ghc-mod/issues/798

正式地說,ghc-mod沒有更新到GHC 8.有一個分支ghc-8,其中一些測試仍然被打破,但其他的東西應該工作。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM