无法在Ubuntu 16.10上使用cabal 1.24.0.2/ghc安装leksah 8.2.1
问题描述:
我试图安装leksah作为使用cabal的开发环境,但是我遇到了错误。是无法在Ubuntu 16.10上使用cabal 1.24.0.2/ghc安装leksah 8.2.1
[email protected]:~$ cabal install leksah
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: leksah-0.15.2.0 (user goal)
next goal: base (dependency of leksah-0.15.2.0)
rejecting: base-4.10.0.0/installed-4.1... (conflict: leksah => base>=4.0.0.0 && <4.9)
rejecting: base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0,
base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0,
base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0,
base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1,
base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1
(constraint from non-upgradeable package requires installed instance)
Backjump limit reached (currently 2000, change with --max-backjumps or
try to run with --reorder-goals).
关于哈斯克尔在我的机器上安装其他detauls如下 -
[email protected]:~$ ghci --version
The Glorious Glasgow Haskell Compilation System, version 8.2.1
[email protected]:~$ cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library
[email protected]:~$ stack --version
Version 1.3.2, Git revision 3f675146590da4f3edf768b89355f798229da2a5 (4395 commits) x86_64 hpack-0.15.0
任何建议,以解决这些错误?
答
让我们的依赖直:
-
leksah
有版本0.15.2
,它已经发布〜18个月前。这取决于严格低于4.9
的base
包(另请参阅version bump commit)。 -
ghc
已有版本8.2.1
。根据release notes,base
包的版本为4.10.0.0
。
您无法安装另一个基础软件包 - 它与ghc版本(see this post)固有链接。请注意,ghc 8.0.1
(release notes)的基本包的版本是4.9.0.0
。
因此,要么
- 安装一个Haskell之前的版本8,从它的github源(install instructions),或
- 工作带来与它的旧基础包,或
- 安装
leksah
与其他贡献者可能会发布0.15.1
(或其他)只是碰撞版本(假设它仍然在工作)。
它看起来怪异,但 - 有在过去两周内提交,但是download页提到,他们正在计划一个0.16
版本 - 这是半年前。
我有种奇怪,为什么没有对ghc
小号次版本上限 - 目前version requirement设置为基础>=4.0.0.0 && <4.11
。所以当ghc next
再次碰撞base
包时,也会出现同样的问题。所以leksah
几乎锁定在ghc
发布周期。
我不认为你遵循正确的指示:https://github.com/leksah/leksah#building-from-source – Sibi
sibi-我按照步骤,并得到了相同的错误 –
你可以尝试堆栈安装过程的变种? – Sibi