编译snaplet-mongodb-minimalistic时的Cabal问题

时间:2012-08-11 00:45:03

标签: haskell cabal haskell-snap-framework

任何人都可以帮我解决这个问题。我正在尝试从Example 1包中编译snaplet-mongodb-minimalistic,但是我收到以下错误:

$ cabal install
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
trying: snaplet-mongodb-minimalistic-example1-0.0.1 (user goal)
trying: mongoDB-1.3.0/installed-137... (dependency of
snaplet-mongodb-minimalistic-example1-0.0.1)
trying: transformers-base-0.4.1/installed-9d4... (dependency of
mongoDB-1.3.0/installed-137...)
next goal: snap-server (dependency of
snaplet-mongodb-minimalistic-example1-0.0.1)
rejecting: snap-server-0.9.0/installed-5b0..., 0.9.0, 0.8.1.1, 0.8.1, 0.8.0.1,
0.8.0 (conflict: snaplet-mongodb-minimalistic-example1 => snap-server==0.7.)
rejecting: snap-server-0.7.0.1 (conflict: transformers-base =>
transformers==0.3.0.0/installed-e82..., snap-server => transformers>=0.2 &&
rejecting: snap-server-0.7 (conflict: mongoDB =>
array==0.4.0.0/installed-3cf..., snap-server => array>=0.2 && rejecting: snap-server-0.6.0.1, 0.6.0, 0.5.5, 0.5.4, 0.5.3.1, 0.5.3, 0.5.2,
0.5.1.4, 0.5.1.3, 0.5.1.2, 0.5.1.1, 0.5.1, 0.5.0, 0.4.3, 0.4.2, 0.4.1,
0.4.0.2, 0.4.0.1, 0.4.0, 0.3.1.1, 0.3.1, 0.3.0, 0.2.16.2, 0.2.16.1, 0.2.16,
0.2.15.1, 0.2.15, 0.2.14.1, 0.2.14, 0.2.13.3, 0.2.13.2, 0.2.13.1, 0.2.13,
0.2.12, 0.2.11, 0.2.10.2, 0.2.10.1, 0.2.10, 0.2.9, 0.2.8.1, 0.2.8, 0.2.7.2,
0.2.7.1, 0.2.7, 0.2.6, 0.2.5, 0.2.4, 0.2.2, 0.2.1, 0.1.4, 0.1.3, 0.1.2, 0.1.1
(conflict: snaplet-mongodb-minimalistic-example1 => snap-server==0.7.)

我已经向作者提交了issue,但他似乎很忙。如果我能解决这个问题,我会提交修复方案。

1 个答案:

答案 0 :(得分:1)

snaplet-mongodb-minimalistic取决于snap-core == 0.9.*example-1取决于snap-core == 0.7.*(和snap-server)。结果是您所看到的精彩的依赖性失败级联。您必须查看example-1的依赖项,并确保在任何地方都没有版本冲突。