阴谋解决依赖关系

我正在尝试使用cabal-debian在全球安装软件包cabal v2-install cabal-debian并收到以下错误消息:

Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: base-4.12.0.0/installed-4.1... (user goal)
[__1] trying: binary-0.8.7.0 (user goal)
[__2] next goal: ghc (user goal)
[__2] rejecting: ghc-8.6.5/installed-8.6... (conflict: binary==0.8.7.0,ghc =>
binary==0.8.6.0/installed-0.8...)
[__2] trying: ghc-8.6.5
[__3] rejecting: ghc:-buildable (conflict: base==4.12.0.0/installed-4.1...,ghc -buildable => base<0)
[__3] rejecting: ghc:+buildable (manual flag can only be changed explicitly)
[__3] fail (backjumping,conflict set: base,ghc,ghc:buildable)
After searching the rest of the dependency tree exhaustively,these were the
goals I've had most trouble fulfilling: binary,base,ghc:buildable
Try running with --minimize-conflict-set to improve the error message.

我正在使用cabal 3.0.0.0,并已安装ghc 8.6.5

LIUYAOZU 回答:阴谋解决依赖关系

在我看来,您似乎安装了binary版本,该版本与编译器随附的启动库不兼容。我建议您编辑文件

~/.ghc/<something>-8.6.5/environments/default

并删除提及binary的行,然后重试。 (<something>几乎可以肯定是x86_64-linux。)

本文链接:https://www.f2er.com/3144433.html

大家都在问