我在运行Eclipse3.7.2和ghc(i) 7.4.1的Ubuntu12.04机器上安装了EclipseFP,这是用于Eclipse的Haskell插件。每次启动Eclipse时,EclipseFP都要求我安装助手可执行的scion浏览器(0.2.12)和构建器(0.7.2),但最终都失败了。
在命令行上尝试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任何帮助都将是非常感谢的,因为我似乎无法在任何错误上找到任何谷歌点击。
编辑:
在重新安装Haskell之后(我似乎安装了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发布于 2014-02-10 15:17:25
BuildWrapper的问题是由于伊索的剧变所致。见https://github.com/JPMoresmau/BuildWrapper/issues/20。您可以从github获得构建包装源代码(它修复边界并修改代码),也可以强制安装Aeson 0.6。对于Haskeline,我不确定,您能试着自己安装haskeline吗?
发布于 2014-05-24 08:23:40
我认为您应该安装更新的阴谋库附加消息:该包需要cabal库版本-any && >=1.16。
cabal update
cabal install cabal
cabal install cabal-install
cabal --version应该是:使用Cabal库的1.20.0.0版本
如果不修好你的路。新的二进制位可能在~/.
然后:
cabal install haskeline发布于 2014-07-10 03:09:52
我也犯了同样的错误(函数‘`showPpr’被应用于两个参数),这两个错误都是在安装阴谋和从源代码构建的时候。我试过一个更老版本的伊索,
cabal install buildwrapper --constraint=aeson==0.6.2.1
要小心地用接近0.6.2.1的版本替换伊索版本,它产生了很多警告,但它仍然可以成功构建。
https://stackoverflow.com/questions/21680813
复制相似问题