A. *_*ron 5 haskell ide software-installation
我想安装 Leksah 以便我可以学习如何在 Haskell 中编写代码。所以我已经安装了最新版本的 ghc(我希望是正确的)。但是我缺少 Leksah 最新版本的 Cabal。我似乎无法安装它。我有 1.24 版,而最新的是 1.24。在进行以下操作之前,我已经更新了 Cabal,以及下载的 1.24 版。我仍然收到以下回复。当我尝试通过键入以下内容在终端中安装时:
cabal install cabal cabal-install
Run Code Online (Sandbox Code Playgroud)
我收到以下回复:
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: cabal-0.0.0.0 (user goal)
next goal: youProbablyWantCapitalCabal (dependency of cabal-0.0.0.0)
Dependency tree exhaustively searched.
Run Code Online (Sandbox Code Playgroud)
当我输入以下内容时:
cabal install foo
Run Code Online (Sandbox Code Playgroud)
我收到以下回复:
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: foo-1.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of foo-1.0)
trying: containers-0.5.6.2/installed-593... (dependency of foo-1.0)
next goal: haskell98 (dependency of foo-1.0)
rejecting: haskell98-2.0.0.3 (conflict: base==4.8.2.0/installed-0d6...,
haskell98 => base>=4.7 && <4.8)
rejecting: haskell98-2.0.0.2 (conflict: base==4.8.2.0/installed-0d6...,
haskell98 => base==4.6.*)
rejecting: haskell98-2.0.0.1 (conflict: containers =>
array==0.5.1.0/installed-960..., haskell98 => array>=0.3 && <0.5)
rejecting: haskell98-2.0.0.0 (conflict: containers =>
array==0.5.1.0/installed-960..., haskell98 => array>=0.3 && <0.4)
rejecting: haskell98-1.1.0.1, 1.1.0.0, 1.0.1.1 (conflict:
base==4.8.2.0/installed-0d6..., haskell98 => base>=3 && <4.6)
rejecting: haskell98-1.0.1.0 (conflict: base==4.8.2.0/installed-0d6...,
haskell98 => base<4.6)
rejecting: haskell98-1.0 (conflict: base==4.8.2.0/installed-0d6...,
haskell98
=> base<4.3)
Dependency tree exhaustively searched.
Run Code Online (Sandbox Code Playgroud)
我什至下载了 cabal 1.24。终端告诉我我目前安装了 1.22.6 版,并且我使用的是 Cabal 库的 1.22.5 版。
如何更新 Cabal?我应该在不更新 Cabal 的情况下尝试安装 Leksah 吗?
小智 3
这条略显神秘的错误消息中有一条线索:next goal: youProbablyWantCapitalCabal (dependency of cabal-0.0.0.0)
该库包名为Cabal
notcabal
。尝试运行:cabal install Cabal cabal-install
归档时间: |
|
查看次数: |
864 次 |
最近记录: |