【发布时间】:2015-08-14 16:00:40
【问题描述】:
我正在尝试按照instructions 安装Quipper 所需的Haskell 组件;但是,从全新安装的 Haskell using the binary installer 开始工作。
我在尝试安装 Lattices 软件包时在列表中:
cabal update
cabal install random
cabal install mtl
cabal install primes
cabal install Lattices
但是我遇到了以下错误:
Lattices-0.0.1 在构建阶段失败。例外是:ExitFailure 1
如果我尝试继续Quipper install instructions:
cabal install zlib
cabal install easyrender
我遇到更多错误:
cabal:无法解决依赖关系:
我不确定如何继续。我该怎么做才能完成 Quipper 的软件包安装instructions?
Resolving dependencies...
Configuring Lattices-0.0.1...
Building Lattices-0.0.1...
Failed to install Lattices-0.0.1
Build log ( /Users/Roy/.cabal/logs/Lattices-0.0.1.log ):
Configuring Lattices-0.0.1...
Building Lattices-0.0.1...
Preprocessing library Lattices-0.0.1...
[1 of 2] Compiling Math.LinearAlgebra.GramSchmidt ( src/Math/LinearAlgebra/GramSchmidt.hs, dist/build/Math/LinearAlgebra/GramSchmidt.o )
src/Math/LinearAlgebra/GramSchmidt.hs:25:26:
Ambiguous occurrence ‘*>’
It could refer to either ‘Prelude.*>’,
imported from ‘Prelude’ at src/Math/LinearAlgebra/GramSchmidt.hs:2:8-37
(and originally defined in ‘GHC.Base’)
or ‘Math.Algebra.LinearAlgebra.*>’,
imported from ‘Math.Algebra.LinearAlgebra’ at src/Math/LinearAlgebra/GramSchmidt.hs:7:1-43
cabal: Error: some packages failed to install:
Lattices-0.0.1 failed during the building phase. The exception was:
ExitFailure 1
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: easyrender-0.1.0.1 (user goal)
next goal: base (dependency of easyrender-0.1.0.1)
rejecting: base-4.8.1.0/installed-075... (conflict: easyrender => base>=4.6 &&
<4.8)
rejecting: base-4.8.1.0, 4.8.0.0, 4.7.0.2, 4.7.0.1, 4.7.0.0, 4.6.0.1, 4.6.0.0,
4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1,
4.2.0.0, 4.1.0.0, 4.0.0.0, 3.0.3.2, 3.0.3.1 (global constraint requires
installed instance)
Dependency tree exhaustively searched.
OS X 10.10.4; Xcode 6.4; CLT:6.4.0.0.1.1435007323; Clang:6.1 构建 602; Haskell GHC:7.10.2。一般使用 Homebrew,但遵循似乎是 Homebrew's recommendation 的内容,不适用于 Haskell。
【问题讨论】:
-
注意:我是 Haskell 的新手,所以我在 fresh installation 工作,除了执行 instructions specified for configuring Quipper 之外没有使用 Cabal 的经验。
-
看起来
Lattices-0.0.1的源代码与base的较新版本不兼容,后者现在默认包含Applicative Functor 运算符(<$>)、(<*>)、(*>)和(<*) -
@recursion.ninja:你能详细说明一下吗?我能做些什么来解决这个问题。
标签: haskell installation packaging cabal haskell-platform