簡體   English   中英

Cabal安裝ghc-mod抱怨破損的包裹(GHC 7.6.3)

[英]Cabal install ghc-mod complains on broken packages (GHC 7.6.3)

我在Ubuntu上使用:GHC 7.6.3(通過apt-get install haskell-platform)從當前的repo安裝它apt-get install haskell-platform)

嘗試安裝ghc-mod ,因為我的ide插件要求它。

❯ cabal install ghc-mod             
Resolving dependencies...
In order, the following would be installed:
cmdargs-0.10.7 (new package)
convertible-1.1.0.0 (new package)
ghc-syb-utils-0.2.1.2 (new package)
hashable-1.2.1.0 (reinstall) changes: text-0.11.3.1 -> 1.1.0.1
hscolour-1.20.3 (new package)
polyparse-1.9 (new package)
cpphs-1.18.4 (new package)
haskell-src-exts-1.15.0.1 (new package)
transformers-base-0.4.2 (new package)
monad-control-0.3.3.0 (new package)
lifted-base-0.2.2.2 (new package)
io-choice-0.0.5 (new package)
unordered-containers-0.2.4.0 (reinstall)
uniplate-1.6.12 (new package)
hlint-1.8.61 (new package)
ghc-mod-4.1.0 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
unordered-containers-0.2.3.0
case-insensitive-1.2.0.0
case-insensitive-1.1.0.2
Use --force-reinstalls if you want to install anyway.

解決此類問題的常用步驟是什么? (這是我第一次嘗試使用Haskell)

  • 選項1:堅持使用haskell平台版本 請參閱更改行並嘗試添加約束以使用平台文本庫版本。

    cabal install ghc-mod --constraint = text == 0.11.3.1

  • 選項2:在特定文件夾中的沙箱中構建它。 您必須將sandbox bin文件夾添加到路徑中,或將可執行文件復制或鏈接到$ HOME / bin文件夾。

您必須更新cabal-install以使用cabal的新沙箱功能(v.1.18 +)。 替代品是cabal-dev,hsenv和virthualenv

  • 選項3:重置$ HOME / .ghc和$ HOME / .cabal / lib中的庫文件夾

暫無
暫無

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

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