我在運行Eclipse 3.7.2和ghc(i)7.4.1的Ubuntu 12.04機器上安裝EclipseFP,Eclipse的Haskell插件。每次啓動Eclipse時,EclipseFP會要求我安裝助手可執行文件瀏覽器(0.2.12)和buildrunner(0.7.2),但最終無法安裝兩者。在Ubuntu 12.04上安裝cabal install scion-browser失敗,因爲haskeline需要Cabal庫版本> = 1.16
在命令行中嘗試cabal install scion-browser
(或cabal install haskeline
)失敗,
Resolving dependencies...
cabal: Error: some packages failed to install:
haskeline-0.7.1.2 failed during the configure step. The exception was:
user error (The package requires Cabal library version -any && >=1.16 but no
suitable version is installed.)
而cabal install buildwrapper
失敗
Resolving dependencies...
Configuring buildwrapper-0.7.7...
Building buildwrapper-0.7.7...
Preprocessing library buildwrapper-0.7.7...
[1 of 7] Compiling Language.Haskell.BuildWrapper.Base (src/Language/Haskell/BuildWrapper/Base.hs, dist/build/Language/Haskell/BuildWrapper/Base.o)
[2 of 7] Compiling Language.Haskell.BuildWrapper.GHCStorage (src/Language/Haskell/BuildWrapper/GHCStorage.hs, dist/build/Language/Haskell/BuildWrapper/GHCStorage.o)
src/Language/Haskell/BuildWrapper/GHCStorage.hs:542:22:
Couldn't match expected type `scientific-0.2.0.1:Data.Scientific.Scientific'
with actual type `Number'
In the pattern: I l
In the pattern: Number (I l)
In the pattern: Just (Number (I l))
cabal: Error: some packages failed to install:
buildwrapper-0.7.7 failed during the building phase. The exception was:
ExitFailure 1
任何幫助將不勝感激,因爲我似乎不能夠在任何一個錯誤上找到任何Google點擊。
編輯:
重新安裝哈斯克爾後(看來我的containers
兩個版本安裝的runhaskell Setup.hs configure --user
正確地抱怨),我現在可以配置BuildWrapper
但是建立失敗,出現以下錯誤:
[3 of 7] Compiling Language.Haskell.BuildWrapper.GHC (src/Language/Haskell/BuildWrapper/GHC.hs, dist/build/Language/Haskell/BuildWrapper/GHC.o)
src/Language/Haskell/BuildWrapper/GHC.hs:522:37:
The function `showPpr' is applied to two arguments,
but its type `a0 -> String' has only one
In the second argument of `(++)', namely `showPpr dflags bname'
In the expression: "show " ++ showPpr dflags bname
In an equation for `exprS': exprS = "show " ++ showPpr dflags bname
BuildWrapper中的容器沒有限制,所以其他一些包必須要求容器0.5。 –
@JPMoresmau看來我安裝了兩個'containers'版本。我抹掉並重新安裝了haskell,並嘗試從源代碼再次建立,現在得到一個編譯錯誤(見上文) – ThomasH