尝试在OS X上安装图表

时间:2016-02-02 14:42:04

标签: haskell osx-elcapitan cabal haskell-diagrams

我试图在OS X上安装图表。在下载时,我收到此类错误消息:

Building linear-1.20.4...
Failed to install linear-1.20.4
Build log ( /Users/Max/.cabal-sandbox/logs/linear-1.20.4.log ):

然后在一些成功的链接包后一段时间:

[ 5 of 22] Compiling Linear.V0        ( src/Linear/V0.hs, dist/dist-sandbox-9f82d52a/build/Linear/V0.o )

src/Linear/V0.hs:318:25:
    ‘eq1’ is not a (visible) method of class ‘Eq1’

src/Linear/V0.hs:319:25:
    ‘compare1’ is not a (visible) method of class ‘Ord1’

src/Linear/V0.hs:320:25:
    ‘showsPrec1’ is not a (visible) method of class ‘Show1’

src/Linear/V0.hs:321:25:
    ‘readsPrec1’ is not a (visible) method of class ‘Read1’

cabal: Error: some packages failed to install:
active-0.2.0.8 depends on linear-1.20.4 which failed to install.
diagrams-1.3 depends on linear-1.20.4 which failed to install.
diagrams-contrib-1.3.0.8 depends on linear-1.20.4 which failed to install.
diagrams-core-1.3.0.5 depends on linear-1.20.4 which failed to install.
diagrams-lib-1.3.0.9 depends on linear-1.20.4 which failed to install.
diagrams-svg-1.3.1.10 depends on linear-1.20.4 which failed to install.
force-layout-0.4.0.3 depends on linear-1.20.4 which failed to install.
linear-1.20.4 failed during the building phase. The exception was:
ExitFailure 1

有谁知道如何解决它?

我的gtk和cabal都是最新的。

谢谢:)

1 个答案:

答案 0 :(得分:0)

您在该版本的线性版中遇到了一个错误,与transformers库的某些版本相关。

请参阅以下故障单:

https://github.com/ekmett/linear/issues/97

评论指出:“已经在4a2aab7中修复,尚未在Hackage上修复。与此同时,使用变压器> 0.3或变压器 - compat< 0.5”