cabal install gloss-raster
输出:
Resolving dependencies...
Configuring gloss-raster-1.7.4.3...
Building gloss-raster-1.7.4.3...
Preprocessing library gloss-raster-1.7.4.3...
[1 of 2] Compiling Graphics.Gloss.Raster.Array ( Graphics/Gloss/Raster/Array.hs, dist/build/Graphics/Gloss/Raster/Array.o )
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM
ghc: could not execute: opt-3.0
cabal: Error: some packages failed to install:
gloss-raster-1.7.4.3 failed during the building phase. The exception was:
ExitFailure 1
我已经安装了LLVM(apt-get install llvm
)及其Haskell库(cabal install llvm
),那么LLVM有什么问题?
我尝试使用sudo cabal install llvm-3.0
安装特定版本,我得到了:
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: llvm (user goal)
rejecting: llvm-3.0.1.0/installed-d41..., 3.0.1.0, 3.0.0.0, 0.10.0.1,
0.10.0.0, 0.9.1.2, 0.9.1.1, 0.9.1.0, 0.9.0.1, 0.8.2.0, 0.8.1.0, 0.8.0.2,
0.7.1.2, 0.7.1.1, 0.7.1.0, 0.7.0.1, 0.7.0.0, 0.6.8.0, 0.6.7.0, 0.6.6.0,
0.6.5.0, 0.6.4.0, 0.6.3.0, 0.6.2.0, 0.6.0.3, 0.6.0.2, 0.5.0.1, 0.4.4.2,
0.4.4.1, 0.4.2.0, 0.4.1.0, 0.4.0.3, 0.4.0.1, 0.4.0.0, 0.0.2 (global constraint
requires ==3.0)
答案 0 :(得分:2)
您需要安装LLVM编译器以便GHC可以使用它,但光泽库不需要Haskell LLVM库。
如果您的“apt-get install llvm”将LLVM优化器安装为“opt”而不是“opt-3.0”,那么您可能需要手动添加来自opt - >的链接“ln -s”。选择加入3.0
答案 1 :(得分:0)
它看起来像gloss-raster中的错误 - 它无法选择系统上安装的LLVM。我建议在gloss@ouroborus.net上询问