cabal在linux上安装cabal-install错误 [英] cabal install cabal-install errors out on linux

查看:219
本文介绍了cabal在linux上安装cabal-install错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 使用linux(centos 6.6)。当我尝试运行cabal install cabal-install命令时出现以下错误: cabal:不能配置unix-2.7.0.1。它需要> = 4.5&& < 4.8 
对于> = 4.5&& < 4.8有这些包:
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和
base-4.7。 0.1。但是,它们都不可用。
base-4.5.0.0被排除,因为选择了base-4.3.1.0,而不是因为顶级依赖关系基础排除了
base-4.5.0.0 -any
base-4.5.1.0是因为选择了base-4.3.1.0,所以排除了
base-4.5.1.0,因为顶级依赖关系基础排除了 - 任何排除了
base-4.6.0.0因为选择了base-4.3.1.0
base-4.6.0.0被排除在顶级依赖关系基础之上-any
base-4.6.0.1被排除,因为选择了base-4.3.1.0,而不是
base-4.6.0.1排除,因为顶级依赖关系基础-any
base-4.7.0.0被排除,因为选择了base-4.3.1.0,而不是由于顶级依赖关系基础而被排除了
base-4.7.0.0 -any
base-4.7.0.1被排除,因为选择了base-4.3.1.0,而是因为顶级依赖关系基础而被排除了
base-4.7.0.1 -any

注意:caball-install版本0.10.2
使用版本1.10.2.0 Cabal图书馆

GHC版本7.0.4

haskell-platform-2011.4.0.0-6.el6.x86_64



如何解决它.pls帮助!

解决方案

这个问题是因为旧版本的ghc-7.0.4.I下载ghc 7.8.3来自此处的源码tarball并安装它。



然后ghc 7.8.3有旧版cabal,所以必须使用
ghc unregister Cabal 来从ghc 7.8.3注销它。



然后从cabal-install-1.20文件夹运行bootstrap.sh并成功安装cabal-install 1.20。

Am using linux (centos 6.6).When I try to run cabal install cabal-install command am getting following errors

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

Note: caball-install version 0.10.2 using version 1.10.2.0 of the Cabal library
GHC version 7.0.4
haskell-platform-2011.4.0.0-6.el6.x86_64

How to resolve it.pls help!

解决方案

This issue is because of an old version of ghc-7.0.4.I downloaded ghc 7.8.3 source tarball from here and installed it.

Then ghc 7.8.3 had old version of cabal so, have to unregister it from ghc 7.8.3 using ghc unregister Cabal .

Then run bootstrap.sh from cabal-install-1.20 folder and got cabal-install 1.20 successfully.

这篇关于cabal在linux上安装cabal-install错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆