2012-07-10 72 views
2

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) 
+0

'opt-3.0'建議您需要llvm 3.0。你有哪個版本?您可能還需要安裝'llvm-dev'。 – 2012-07-10 17:31:48

+0

我編輯了第一篇文章。安裝'llvm-dev'沒有幫助。 – L01man 2012-07-11 01:48:35

回答

0

看起來光澤光柵的錯誤 - 它不能挑你的系統上安裝LLVM。我會建議詢問[email protected]

+0

我只是郵寄給他們。 – L01man 2012-07-11 20:12:42

2

您需要安裝LLVM編譯器以便GHC可以使用它,但光澤庫不需要Haskell LLVM庫。

如果您的「apt-get install llvm」將LLVM優化器安裝爲「opt」而不是「opt-3.0」,那麼您可能需要在opt - > opt-3.0中手動添加鏈接「ln -s」

+0

我已在'/ usr/bin'中擁有'opt',它指向'/ usr/bin'中的'opt-2.9',它指向'/ usr/lib/llvm-2.9/bin/opt'中的'opt' 。 – L01man 2012-07-12 07:12:23