解决依赖关系的 Cabal 问题
Cabal trouble resolving dependencies
我正在尝试使用 cabal v2-install cabal-debian
全局安装包 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, ghc:buildable
Try running with --minimize-conflict-set to improve the error message.
我正在使用 cabal 3.0.0.0
并安装了 ghc 8.6.5
。
对我来说,您安装的 binary
版本似乎与编译器随附的引导库不兼容。我建议您编辑文件
~/.ghc/<something>-8.6.5/environments/default
并删除提到 binary
的行,然后重试。 (<something>
几乎可以肯定是 x86_64-linux
。)
我正在尝试使用 cabal v2-install cabal-debian
全局安装包 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, ghc:buildable
Try running with --minimize-conflict-set to improve the error message.
我正在使用 cabal 3.0.0.0
并安装了 ghc 8.6.5
。
对我来说,您安装的 binary
版本似乎与编译器随附的引导库不兼容。我建议您编辑文件
~/.ghc/<something>-8.6.5/environments/default
并删除提到 binary
的行,然后重试。 (<something>
几乎可以肯定是 x86_64-linux
。)