我尝试通过cabal安装安装glib
evgeny@virtuos:~$ cabal install glib-0.13.0.7
Resolving dependencies...
Failed to install glib-0.13.0.7
cabal: Error: some packages failed to install:
glib-0.13.0.7 failed during the configure step. The exception was:
user error (The package 'glib' requires Cabal library version -any && >=1.18
but no suitable version is installed.)
evgeny@virtuos:~$ cabal --version
cabal-install version 1.20.0.3
using version 1.20.0.2 of the Cabal library
怎么了? 操作系统:Ubuntu 14.10 Cabal 1.20.0.3 GHC:7.6.3
答案 0 :(得分:2)
运行cabal install cabal-install
。 Daniel Wagner的建议很可能会提供与cabal --version
不同的结果。