使用linux(centos 6.6)。当我尝试运行cabal install cabal-install命令时出现以下错误
cabal: cannot configure unix-2.7.0.1. It requires base >=4.5 && <4.8
For the dependency on base >=4.5 && <4.8 there are these packages:
base-4.5.0.0, base-4.5.1.0, base-4.6.0.0, base-4.6.0.1, base-4.7.0.0 and
base-4.7.0.1. However none of them are available.
base-4.5.0.0 was excluded because base-4.3.1.0 was selected instead
base-4.5.0.0 was excluded because of the top level dependency base -any
base-4.5.1.0 was excluded because base-4.3.1.0 was selected instead
base-4.5.1.0 was excluded because of the top level dependency base -any
base-4.6.0.0 was excluded because base-4.3.1.0 was selected instead
base-4.6.0.0 was excluded because of the top level dependency base -any
base-4.6.0.1 was excluded because base-4.3.1.0 was selected instead
base-4.6.0.1 was excluded because of the top level dependency base -any
base-4.7.0.0 was excluded because base-4.3.1.0 was selected instead
base-4.7.0.0 was excluded because of the top level dependency base -any
base-4.7.0.1 was excluded because base-4.3.1.0 was selected instead
base-4.7.0.1 was excluded because of the top level dependency base -any
注意:caball-install版本0.10.2
使用Cabal库的1.10.2.0版本
GHC版本7.0.4
haskell-platform-2011.4.0.0-6.el6.x86_64
如何解决it.pls帮助!
答案 0 :(得分:0)
这个问题是因为旧版本的ghc-7.0.4。我从here下载了ghc 7.8.3源码tarball并安装了它。
然后ghc 7.8.3有旧版本的cabal所以,必须从ghc 7.8.3中取消注册
ghc unregister Cabal
。
然后从cabal-install-1.20文件夹运行bootstrap.sh并成功获得cabal-install 1.20。