使用cabal-install安装netcore时出错

时间:2015-04-04 18:06:04

标签: linux haskell cabal cabal-install

我按照指示尝试了以下命令:

cabal install netcore

错误如下:

rmichael@node:~/netcore$ cabal install netcore --force-reinstalls --reinstall
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: netcore-1.0.0 (user goal)
next goal: network (dependency of netcore-1.0.0)
rejecting: network-2.6.0.2/installed-9fc..., 2.6.0.2, 2.6.0.1, 2.6.0.0,
2.5.0.0, 2.4.2.3, 2.4.2.2, 2.4.2.1, 2.4.2.0, 2.4.1.2, 2.4.1.1, 2.4.1.0,
2.4.0.1, 2.4.0.0 (conflict: netcore => network==2.3.*)
trying: network-2.3.2.0
next goal: unix (dependency of network-2.3.2.0)
rejecting: unix-2.7.0.1/installed-f86... (conflict: unix =>
bytestring==0.10.4.0/installed-d6f..., netcore => bytestring==0.9.*)
trying: unix-2.7.1.0
next goal: parsec (dependency of netcore-1.0.0)
rejecting: parsec-3.1.9/installed-3e8... (package is broken)
trying: parsec-3.1.9
next goal: text (dependency of parsec-3.1.9)
rejecting: text-1.2.0.4/installed-3df... (conflict: text =>
bytestring==0.10.6.0/installed-768..., netcore => bytestring==0.9.*)
trying: text-1.2.0.4
next goal: bytestring (dependency of netcore-1.0.0)
rejecting: bytestring-0.10.6.0/installed-768..., 0.10.4.0/installed-d6f...,
0.10.6.0, 0.10.4.1, 0.10.4.0, 0.10.2.0, 0.10.0.2, 0.10.0.1, 0.10.0.0
(conflict: netcore => bytestring==0.9.*)
rejecting: bytestring-0.9.2.1, 0.9.2.0 (conflict: text =>
bytestring>=0.10.4.0)
rejecting: bytestring-0.9.1.10, 0.9.1.9, 0.9.1.8, 0.9.1.7, 0.9.1.6, 0.9.1.5,
0.9.1.4, 0.9.1.3, 0.9.1.2, 0.9.1.1, 0.9.1.0, 0.9.0.4, 0.9.0.3, 0.9.0.2,
0.9.0.1, 0.9 (conflict: unix => bytestring>=0.9.2 && <0.11)
Dependency tree exhaustively searched.
rmichael@node:~/netcore$ 

我无法从这些消息中解读我的下一步行动。任何帮助将不胜感激。

P.S。:我的最终目标是让FlowLog启动并运行。我在这里使用的是Ubuntu 14.04系统。

1 个答案:

答案 0 :(得分:0)

我没有尝试在我正在尝试构建的旧软件包周围安装旧软件包,而是发现更加合理地去了所有版本deps(或者使用--allow-newer自动执行)然后去做修复其中引入的(次要)破损的清洁工作。通常只需要修复一些东西,尽管它们可能需要修复很多地方。最终结果是包的更新版本,您可以将其发送给作者并要求他们忍受hackage!