cabal 安装 hspec 时出错
我正在尝试安装 hspec,但我得到了这个:
$ cabal install hspec
Resolving dependencies...
cabal: dependencies conflict: ghc-7.2.2 requires containers ==0.4.2.0 however
containers-0.4.2.0 was excluded because ghc-7.2.2 requires containers
==0.4.1.0
这是什么意思?
另外,使用 ghc 7.2.2、cabal 10.2。
I'm trying to install hspec, but I'm getting this:
$ cabal install hspec
Resolving dependencies...
cabal: dependencies conflict: ghc-7.2.2 requires containers ==0.4.2.0 however
containers-0.4.2.0 was excluded because ghc-7.2.2 requires containers
==0.4.1.0
What does this even mean?
Also, using ghc 7.2.2, cabal 10.2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你好像以某种方式破坏了你的 GHC 安装。 GHC 7.2.2 附带< /a>containers-0.4.1.0(其版本与 GHC 7.2.1 相同)。 也许可以修复它,但如果全局包设置被破坏,那么重新安装 GHC 可能是最简单的方法。
ghc-pkg 列出容器
说什么?如果仅在每用户安装中找到
containers-0.4.2.2
(即/home/clark/.ghc/${arch}-${os}-7.2.2/ package.conf.d
输出),然后rm
'ing/home/clark/.ghc/
并重新安装使用安装的所有软件包>cabal install
将修复它。It sounds like you somehow broke your GHC install. GHC 7.2.2 comes with containers-0.4.1.0 (the version of which is the same as for GHC 7.2.1). It might be possible to fix it, but if the global package setup is broken then it would probably be easiest to re-install GHC.
What does
ghc-pkg list containers
say?If
containers-0.4.2.2
is found only in the per-user install (i.e. the/home/clark/.ghc/${arch}-${os}-7.2.2/package.conf.d
output), thenrm
'ing/home/clark/.ghc/
and re-installing all the packages you installed withcabal install
will fix it.