我尝试使用cabal安装Djinn但出现以下错误 -
$ cabal install djinn --verbose
Reading available packages...
Resolving dependencies...
cabal: cannot configure djinn-2009.9.3. It requires base ==3.*
For the dependency on base ==3.* there are these packages: base-3.0.3.1 and
base-3.0.3.2. However none of them are available.
base-3.0.3.1 was excluded because of the top level dependency base -any
base-3.0.3.2 was excluded because of the top level dependency base -any
错误信息很神秘,不应该base -any
允许基本版本3.0.3.1?
答案 0 :(得分:2)
来自Haskell邮件列表:
这不是一个很好的错误消息。现在,base是一个特殊的包。它配备ghc,无法升级。这就是为什么Cabal会排除所有基本版本但你已经安装过的版本。如果你有一个最近的ghc,那将是base-4。
希望有所帮助。
答案 1 :(得分:0)
AFAIK,GHC 7不再在版本3中发布base
。最好的想法是通知维护者(lennart * at * augustsson.net)更新包。临时解决方案是从here下载软件包,解压缩并手动编辑文件djinn.cabal
,以便base
的依赖关系为base 4.*
。它可能会也可能不会起作用,但大多数时候值得一试。