0
我該如何解決此問題?無法通過cabal安裝軟件包 - 未滿足依賴關係
$ cabal install http-conduit
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: attoparsec-0.13.0.1/installed-5b6... (user goal)
trying: http-conduit-2.1.8 (user goal)
trying: monad-control-1.0.0.5 (dependency of http-conduit-2.1.8)
next goal: conduit (dependency of http-conduit-2.1.8)
rejecting: conduit-1.2.6.1, 1.2.6, 1.2.5.1, 1.2.5, 1.2.4.3, 1.2.4.2, 1.2.4.1,
1.2.4, 1.2.3.1 (conflict: attoparsec =>
transformers==0.5.1.0/installed-426..., conduit => transformers>=0.2.2 &&
<0.5)
rejecting: conduit-1.2.3, 1.2.2.2, 1.2.2.1, 1.2.2, 1.2.1, 1.2.0.2, 1.2.0.1,
1.2.0, 1.1.7, 1.1.6, 1.1.5, 1.1.4, 1.1.3, 1.1.2.1, 1.1.2, 1.1.1.1, 1.1.1,
1.1.0.2, 1.1.0.1, 1.1.0, 1.0.17.1, 1.0.17, 1.0.16, 1.0.15.1, 1.0.15, 1.0.14,
1.0.13.1, 1.0.13, 1.0.12, 1.0.11.1, 1.0.11, 1.0.10.1, 1.0.10, 1.0.9.3,
1.0.9.2, 1.0.9.1, 1.0.9, 1.0.8, 1.0.7.4, 1.0.7.3, 1.0.7.2, 1.0.7.1, 1.0.7,
1.0.6, 1.0.5.1, 1.0.5, 1.0.4.2, 1.0.4.1, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0.2,
1.0.0.1, 1.0.0, 0.5.6, 0.5.5 (conflict: monad-control==1.0.0.5, conduit =>
monad-control>=0.3.1 && <0.4)
rejecting: conduit-0.5.4.2, 0.5.4.1, 0.5.4, 0.5.3, 0.5.2.7, 0.5.2.6, 0.5.2.5,
0.5.2.4, 0.5.2.3, 0.5.2.2, 0.5.2.1, 0.5.2, 0.5.1, 0.5.0, 0.4.2, 0.4.1.1,
0.4.1, 0.4.0.1, 0.4.0, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.1.1, 0.1.1, 0.1.0,
0.0.4, 0.0.3, 0.0.2, 0.0.1.1, 0.0.1, 0.0.0.2, 0.0.0.1, 0.0.0 (conflict:
http-conduit => conduit>=0.5.5 && <1.3)
Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
而且
$ cabal --version
cabal-install version 1.22.8.0
using version 1.22.7.0 of the Cabal library
還有的相關性之間的衝突你的目標'http-conduit-2.1.8'和已經安裝的'attoparsec-0.13.0.1',這兩個人正在請求一個包的不同版本。請簡要閱讀[本頁](https://wiki.haskell.org/Cabal/Survival)並嘗試使用haskell-stack構建工具。 – zakyggaps
這並不回答你的問題,但你可以使用haskellstack.org:'stack install http-conduit'。 – Sibi
'變形金剛'的版本是 - 0.5.1.0 - 你的ghc的版本?如果沒有,這個沙箱出了問題,你應該重新開始。變形金剛0.5.x對於追趕的東西來說太新了。還增加了「--allow-newer」來強制兼容性。但是'stack'將是最好的計劃,我同意。 – Michael