cabal install gloss-raster
輸出:驚天動地:不能安裝,因爲LLVM的光澤光柵
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
)及其哈斯克爾庫(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)
'opt-3.0'建議您需要llvm 3.0。你有哪個版本?您可能還需要安裝'llvm-dev'。 – 2012-07-10 17:31:48
我編輯了第一篇文章。安裝'llvm-dev'沒有幫助。 – L01man 2012-07-11 01:48:35