试图安装gtk2hs-编译工具时,“惊天动地-2.4.1.0在配置步骤中失败”

问题描述 投票:0回答:1

我想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.
haskell ubuntu-16.04 cabal-install
1个回答
2
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.