每当我尝试在Cabal上安装新软件包时,它都会尝试并且无法安装以前失败的安装

问题描述 投票:0回答:1

[过去,我尝试通过Cabal安装Clipboard,但不知道它只能在32位Windows上运行,因此失败了。现在,我试图通过Cabal安装utf8-string,但是当我运行命令cabal new-install utf8-string时,我得到以下信息:

Resolving dependencies...
cabal.exe: Could not resolve dependencies:
[__0] trying: Clipboard-2.3.2.0 (user goal)
[__1] next goal: Win32 (dependency of Clipboard)
[__1] rejecting: Win32-2.6.1.0/installed-2.6..., Win32-2.8.5.0, Win32-2.8.4.0,
Win32-2.8.3.0, Win32-2.8.2.0, Win32-2.8.1.0, Win32-2.8.0.0, Win32-2.7.0.0,
Win32-2.6.2.0, Win32-2.6.1.0, Win32-2.6.0.0, Win32-2.5.4.1, Win32-2.5.3.0,
Win32-2.5.2.0, Win32-2.5.1.0, Win32-2.5.0.0, Win32-2.4.0.0 (conflict:
Clipboard => Win32>=2.2.0.0 && <2.4)
[__1] trying: Win32-2.3.1.1
[__2] trying: base-4.12.0.0/installed-4.1... (user goal)
[__3] next goal: ghc (user goal)
[__3] rejecting: ghc-8.6.5/installed-8.6... (conflict: Win32==2.3.1.1, ghc =>
Win32==2.6.1.0/installed-2.6...)
[__3] rejecting: ghc-8.6.5 (conflict: base==4.12.0.0/installed-4.1..., ghc =>
base<0 && ==4.12.*)
[__3] rejecting: ghc-8.6.4, ghc-8.6.1, ghc-8.4.4, ghc-8.4.3, ghc-8.4.1,
ghc-8.2.2, ghc-8.2.1 (constraint from user target requires ==8.6.5)
[__3] fail (backjumping, conflict set: Win32, base, ghc)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ghc, Win32, base, Clipboard

如果很重要,我正在运行64位Windows 10,并且正在使用Cygwin64 Terminal。

haskell cabal
1个回答
0
投票
您:阴谋集团!安装旧的东西。

Cabal:可以。对于我的好友GHC,我还将在$HOME/.ghc/$arch-$ghc_version/environments/default中记录旧的内容。

您:阴谋集团!安装其他东西。

Cabal:好的。让我检查一下应该为此安装哪些软件包。是的,现在我有了该列表...它说在这里我应该安装新的东西-但是默认环境要求使用旧版本的新东西。

寻找出路

终结者

拧紧旧环境,我不在乎。

rm $HOME/.ghc/*/environments/default

图书管理员

我喜欢我的旧环境,让我们在新环境中构建此软件包。

cabal install --package-env some-new-named-package-environment utf8-string

程序员

我喜欢基于目录的工作流,并且真的不想考虑环境,对我来说,您怎么想呢?

cabal install --lib utf8-string --package-env .

程序员(我希望是2020年夏天)

我喜欢基于目录的工作流,并且不想

谈论关于环境。幸运的是,有人修复了基本问题https://github.com/haskell/cabal/issues/5559,所以现在我只需键入cabal install --lib utf8-string

© www.soinside.com 2019 - 2024. All rights reserved.