gpt4 book ai didi

eclipse - cabal install scion-browser 在 Ubuntu 12.04 上失败,因为 haskeline 需要 Cabal 库版本 >= 1.16

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:11 26 4
gpt4 key购买 nike

我在运行 Eclipse 3.7.2 和 ghc(i) 7.4.1 的 Ubuntu 12.04 机器上安装了 EclipseFP,Eclipse 的 Haskell 插件。每次我启动 Eclipse 时,EclipseFP 都会要求我安装辅助可执行文件 scion-browser (0.2.12) 和 buildrunner (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

任何帮助将不胜感激,因为我似乎无法找到任何关于这两个错误的 Google 搜索结果。

编辑:

重新安装 Haskell 后(似乎我安装了两个版本的 containersrunhaskell 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 的问题是由于 Aeson 中的重大更改所致。参见 https://github.com/JPMoresmau/BuildWrapper/issues/20 .您可以从 github 获取 buildwrapper 源代码(修复边界并调整代码)或强制安装 Aeson 0.6。对于 Haskeline 我不确定,你可以尝试自己安装 haskeline 吗?

关于eclipse - cabal install scion-browser 在 Ubuntu 12.04 上失败,因为 haskeline 需要 Cabal 库版本 >= 1.16,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21680813/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com