0

我已经在 Eclipse 上安装了 EclipseFP,当它启动时它提到我需要安装buildwrapperscion-browser. 我更新了 cabal 并尝试安装每个,但我从以下位置收到此错误sudo cabal install buildwrapper

david@mycomputer:~$ sudo cabal install buildwrapper
Resolving dependencies...
cabal: internal error: could not construct a valid install plan.
The proposed (invalid) plan contained the following problems:
The following packages are involved in a dependency cycle buildwrapper-0.5.2

我收到这条消息是因为sudo cabal install scion-browser我需要指定不同的基础库(相关问题:我如何告诉 cabal 使用不同的基础库?)

david@mycomputer:~$ sudo cabal install scion-browser
Resolving dependencies...
cabal: cannot configure conduit-0.4.2. It requires base >=4.3 && <5
For the dependency on base >=4.3 && <5 there are these packages: base-4.3.0.0,
base-4.3.1.0, base-4.4.0.0, base-4.4.1.0, base-4.5.0.0 and base-4.5.1.0.
However none of them are available.
base-4.3.0.0 was excluded because unix-2.4.0.0 requires base ==4.2.0.0
base-4.3.0.0 was excluded because template-haskell-2.4.0.0 requires base
==4.2.0.0
base-4.3.0.0 was excluded because process-1.0.1.2 requires base ==4.2.0.0
base-4.3.0.0 was excluded because pretty-1.0.1.1 requires base ==4.2.0.0
base-4.3.0.0 was excluded because old-time-1.0.0.3 requires base ==4.2.0.0
base-4.3.0.0 was excluded because old-locale-1.0.0.2 requires base ==4.2.0.0
base-4.3.0.0 was excluded because hpc-0.5.0.4 requires base ==4.2.0.0
base-4.3.0.0 was excluded because ghc-binary-0.5.0.2 requires base ==4.2.0.0
base-4.3.0.0 was excluded because filepath-1.1.0.3 requires base ==4.2.0.0
base-4.3.0.0 was excluded because directory-1.0.1.0 requires base ==4.2.0.0
base-4.3.0.0 was excluded because containers-0.3.0.0 requires base ==4.2.0.0
base-4.3.0.0 was excluded because bytestring-0.9.1.5 requires base ==4.2.0.0
base-4.3.0.0 was excluded because bin-package-db-0.0.0.0 requires base
==4.2.0.0
base-4.3.0.0 was excluded because array-0.3.0.0 requires base ==4.2.0.0
base-4.3.0.0 was excluded because Cabal-1.8.0.2 requires base ==4.2.0.0
base-4.3.0.0 was excluded because ghc-6.12.1 requires base ==4.2.0.0
base-4.3.0.0 was excluded because of the top level dependency base -any
base-4.3.1.0 was excluded because unix-2.4.0.0 requires base ==4.2.0.0
base-4.3.1.0 was excluded because template-haskell-2.4.0.0 requires base
==4.2.0.0
base-4.3.1.0 was excluded because process-1.0.1.2 requires base ==4.2.0.0
base-4.3.1.0 was excluded because pretty-1.0.1.1 requires base ==4.2.0.0
base-4.3.1.0 was excluded because old-time-1.0.0.3 requires base ==4.2.0.0
base-4.3.1.0 was excluded because old-locale-1.0.0.2 requires base ==4.2.0.0
base-4.3.1.0 was excluded because hpc-0.5.0.4 requires base ==4.2.0.0
base-4.3.1.0 was excluded because ghc-binary-0.5.0.2 requires base ==4.2.0.0
base-4.3.1.0 was excluded because filepath-1.1.0.3 requires base ==4.2.0.0
base-4.3.1.0 was excluded because directory-1.0.1.0 requires base ==4.2.0.0
base-4.3.1.0 was excluded because containers-0.3.0.0 requires base ==4.2.0.0
base-4.3.1.0 was excluded because bytestring-0.9.1.5 requires base ==4.2.0.0
base-4.3.1.0 was excluded because bin-package-db-0.0.0.0 requires base
==4.2.0.0
base-4.3.1.0 was excluded because array-0.3.0.0 requires base ==4.2.0.0
base-4.3.1.0 was excluded because Cabal-1.8.0.2 requires base ==4.2.0.0
base-4.3.1.0 was excluded because ghc-6.12.1 requires base ==4.2.0.0
base-4.3.1.0 was excluded because of the top level dependency base -any
base-4.4.0.0 was excluded because uniplate-1.6.7 requires base >=4 && <4.4
base-4.4.0.0 was excluded because unix-2.4.0.0 requires base ==4.2.0.0
base-4.4.0.0 was excluded because template-haskell-2.4.0.0 requires base
==4.2.0.0
base-4.4.0.0 was excluded because process-1.0.1.2 requires base ==4.2.0.0
base-4.4.0.0 was excluded because pretty-1.0.1.1 requires base ==4.2.0.0
base-4.4.0.0 was excluded because old-time-1.0.0.3 requires base ==4.2.0.0
base-4.4.0.0 was excluded because old-locale-1.0.0.2 requires base ==4.2.0.0
base-4.4.0.0 was excluded because hpc-0.5.0.4 requires base ==4.2.0.0
base-4.4.0.0 was excluded because ghc-binary-0.5.0.2 requires base ==4.2.0.0
base-4.4.0.0 was excluded because filepath-1.1.0.3 requires base ==4.2.0.0
base-4.4.0.0 was excluded because directory-1.0.1.0 requires base ==4.2.0.0
base-4.4.0.0 was excluded because containers-0.3.0.0 requires base ==4.2.0.0
base-4.4.0.0 was excluded because bytestring-0.9.1.5 requires base ==4.2.0.0
base-4.4.0.0 was excluded because bin-package-db-0.0.0.0 requires base
==4.2.0.0
base-4.4.0.0 was excluded because array-0.3.0.0 requires base ==4.2.0.0
base-4.4.0.0 was excluded because Cabal-1.8.0.2 requires base ==4.2.0.0
base-4.4.0.0 was excluded because ghc-6.12.1 requires base ==4.2.0.0
base-4.4.0.0 was excluded because of the top level dependency base -any
base-4.4.1.0 was excluded because uniplate-1.6.7 requires base >=4 && <4.4
base-4.4.1.0 was excluded because unix-2.4.0.0 requires base ==4.2.0.0
base-4.4.1.0 was excluded because template-haskell-2.4.0.0 requires base
==4.2.0.0
base-4.4.1.0 was excluded because process-1.0.1.2 requires base ==4.2.0.0
base-4.4.1.0 was excluded because pretty-1.0.1.1 requires base ==4.2.0.0
base-4.4.1.0 was excluded because old-time-1.0.0.3 requires base ==4.2.0.0
base-4.4.1.0 was excluded because old-locale-1.0.0.2 requires base ==4.2.0.0
base-4.4.1.0 was excluded because hpc-0.5.0.4 requires base ==4.2.0.0
base-4.4.1.0 was excluded because ghc-binary-0.5.0.2 requires base ==4.2.0.0
base-4.4.1.0 was excluded because filepath-1.1.0.3 requires base ==4.2.0.0
base-4.4.1.0 was excluded because directory-1.0.1.0 requires base ==4.2.0.0
base-4.4.1.0 was excluded because containers-0.3.0.0 requires base ==4.2.0.0
base-4.4.1.0 was excluded because bytestring-0.9.1.5 requires base ==4.2.0.0
base-4.4.1.0 was excluded because bin-package-db-0.0.0.0 requires base
==4.2.0.0
base-4.4.1.0 was excluded because array-0.3.0.0 requires base ==4.2.0.0
base-4.4.1.0 was excluded because Cabal-1.8.0.2 requires base ==4.2.0.0
base-4.4.1.0 was excluded because ghc-6.12.1 requires base ==4.2.0.0
base-4.4.1.0 was excluded because of the top level dependency base -any
base-4.5.0.0 was excluded because uniplate-1.6.7 requires base >=4 && <4.4
base-4.5.0.0 was excluded because unix-2.4.0.0 requires base ==4.2.0.0
base-4.5.0.0 was excluded because template-haskell-2.4.0.0 requires base
==4.2.0.0
base-4.5.0.0 was excluded because process-1.0.1.2 requires base ==4.2.0.0
base-4.5.0.0 was excluded because pretty-1.0.1.1 requires base ==4.2.0.0
base-4.5.0.0 was excluded because old-time-1.0.0.3 requires base ==4.2.0.0
base-4.5.0.0 was excluded because old-locale-1.0.0.2 requires base ==4.2.0.0
base-4.5.0.0 was excluded because hpc-0.5.0.4 requires base ==4.2.0.0
base-4.5.0.0 was excluded because ghc-binary-0.5.0.2 requires base ==4.2.0.0
base-4.5.0.0 was excluded because filepath-1.1.0.3 requires base ==4.2.0.0
base-4.5.0.0 was excluded because directory-1.0.1.0 requires base ==4.2.0.0
base-4.5.0.0 was excluded because containers-0.3.0.0 requires base ==4.2.0.0
base-4.5.0.0 was excluded because bytestring-0.9.1.5 requires base ==4.2.0.0
base-4.5.0.0 was excluded because bin-package-db-0.0.0.0 requires base
==4.2.0.0
base-4.5.0.0 was excluded because array-0.3.0.0 requires base ==4.2.0.0
base-4.5.0.0 was excluded because Cabal-1.8.0.2 requires base ==4.2.0.0
base-4.5.0.0 was excluded because ghc-6.12.1 requires base ==4.2.0.0
base-4.5.0.0 was excluded because of the top level dependency base -any
base-4.5.1.0 was excluded because uniplate-1.6.7 requires base >=4 && <4.4
base-4.5.1.0 was excluded because unix-2.4.0.0 requires base ==4.2.0.0
base-4.5.1.0 was excluded because template-haskell-2.4.0.0 requires base
==4.2.0.0
base-4.5.1.0 was excluded because process-1.0.1.2 requires base ==4.2.0.0
base-4.5.1.0 was excluded because pretty-1.0.1.1 requires base ==4.2.0.0
base-4.5.1.0 was excluded because old-time-1.0.0.3 requires base ==4.2.0.0
base-4.5.1.0 was excluded because old-locale-1.0.0.2 requires base ==4.2.0.0
base-4.5.1.0 was excluded because hpc-0.5.0.4 requires base ==4.2.0.0
base-4.5.1.0 was excluded because ghc-binary-0.5.0.2 requires base ==4.2.0.0
base-4.5.1.0 was excluded because filepath-1.1.0.3 requires base ==4.2.0.0
base-4.5.1.0 was excluded because directory-1.0.1.0 requires base ==4.2.0.0
base-4.5.1.0 was excluded because containers-0.3.0.0 requires base ==4.2.0.0
base-4.5.1.0 was excluded because bytestring-0.9.1.5 requires base ==4.2.0.0
base-4.5.1.0 was excluded because bin-package-db-0.0.0.0 requires base
==4.2.0.0
base-4.5.1.0 was excluded because array-0.3.0.0 requires base ==4.2.0.0
base-4.5.1.0 was excluded because Cabal-1.8.0.2 requires base ==4.2.0.0
base-4.5.1.0 was excluded because ghc-6.12.1 requires base ==4.2.0.0
base-4.5.1.0 was excluded because of the top level dependency base -any

有谁知道如何安装这些库以便我可以使用 EclipseFP?在 Eclipse 启动时的弹出窗口中,它会安装这些库,但按下它不会做任何事情。

4

1 回答 1

1

您可以通过升级 GHC 获得更新的基础。我推荐这个:GHC 6.12 现在已经 2.5 年了,在那段时间发生了很多事情。

猜测一下,循环依赖来自使用旧版本的 cabal(-install)。较新版本的 cabal 允许单个包同时提供库和可执行文件(可能取决于库);对于旧版本,这可能看起来像一个单包循环依赖。

于 2012-06-22T03:55:04.487 回答