尝试安装gtk2hs-buildtools时出现“ Cabal-2.4.1.0在配置步骤期间失败”

时间:2019-01-30 03:24:01

标签: haskell ubuntu-16.04 cabal-install

我正在尝试cabal install gtk2hs-buildtools,但在'ParseResult.hs'文件中收到错误。我不确定这是错误还是本地错误。

我确保rc文件已正确更新为具有export PATH=$HOME/.cabal/bin:$PATH

(大空格来自格式)

cabal install gtk2hs-buildtools
Resolving dependencies...
Configuring Cabal-2.4.1.0...
Failed to install Cabal-2.4.1.0
Build log ( /home/cuffaro/.cabal/logs/Cabal-2.4.1.0.log ):
cabal: Error: some packages failed to install:
Cabal-2.4.1.0 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:

/tmp/cabal-tmp-6517/Cabal-                2.4.1.0/Distribution/Parsec/ParseResult.hs:32:0:
error: missing binary operator before token "("
#if MIN_VERSION_base(4,10,0)
^

/tmp/cabal-tmp-6517/Cabal-      2.4.1.0/Distribution/Parsec/ParseResult.hs:88:0:
error: missing binary operator before token "("
#if MIN_VERSION_base(4,10,0)
^
)
gtk2hs-buildtools-0.13.4.0 depends on Cabal-2.4.1.0 which failed to    install.

1 个答案:

答案 0 :(得分:2)

我的决议是更新到18.04。现在没有问题。