[英]Cabal trouble resolving dependencies
我正在嘗試使用cabal v2-install cabal-debian
cabal-debian
-debian 並收到以下錯誤消息:
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: base-4.12.0.0/installed-4.1... (user goal)
[__1] trying: binary-0.8.7.0 (user goal)
[__2] next goal: ghc (user goal)
[__2] rejecting: ghc-8.6.5/installed-8.6... (conflict: binary==0.8.7.0, ghc =>
binary==0.8.6.0/installed-0.8...)
[__2] trying: ghc-8.6.5
[__3] rejecting: ghc:-buildable (conflict: base==4.12.0.0/installed-4.1...,
ghc -buildable => base<0)
[__3] rejecting: ghc:+buildable (manual flag can only be changed explicitly)
[__3] fail (backjumping, conflict set: base, ghc, ghc:buildable)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: binary, base, ghc, ghc:buildable
Try running with --minimize-conflict-set to improve the error message.
我正在使用cabal 3.0.0.0
並安裝了ghc 8.6.5
。
對我來說,這看起來像是您安裝了與編譯器附帶的引導庫不兼容的binary
版本。 我建議您編輯文件
~/.ghc/<something>-8.6.5/environments/default
並刪除提到binary
的行,然后重試。 ( <something>
幾乎可以肯定是x86_64-linux
。)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.