2013-04-21 213 views
1
wget http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz 
tar -xvzf cabal-install-0.14.0.tar.gz 
cd cabal-install-0.14.0 
sh bootstrap.sh 

有安装阴谋是我使用的命令,当我运行bootstrap.sh,我得到这个错误:麻烦与MAC

Configuring cabal-install-0.14.0... 
Setup: At least the following dependencies are missing: 
mtl >=2.0 && <3 

Error during cabal-install bootstrap: 
Configuring the cabal-install package failed 

这就是我得到的,当我sshed到我校的Linux电脑,

,但我的本地机器上,

我得到这个错误:

Configuring cabal-install-1.16.0.2... 
Building cabal-install-1.16.0.2... 
Preprocessing executable 'cabal' for cabal-install-1.16.0.2... 
<command line>: cannot satisfy -package-id HTTP-4000.2.5-f347025199b192c3cf6b1cde4d698a13 
    (use -v for more information) 

Error during cabal-install bootstrap: 
Building the cabal-install package failed 

任何解决方案? 我已经尝试了谷歌上的一些解决方案,但没有一个工作...

+0

MacPorts如何?我使用MacPorts和IIRC的Haskell平台,安装非常简单。 – zoul 2013-04-21 07:09:53

+0

访问cabal-install的标准解决方案是下载[Haskell Platform](http://www.haskell.org/platform/)。这是获得ghc和cabal-install的第一站。如果你有妨碍这个的约束,你可以将它们包含在你的问题中。 – Davorak 2013-04-21 11:02:06

+1

第一个'cabal-install-0.14.0',看起来像是安装了'mtl-1。*'。正则表达式“MTL_VER_REGEXP =”[12] \。“'接受'mtl-1。*',但build-depends不会。将正则表达式更改为'“[2] \。”应该解决该问题。对于第二个,它看起来像你的包数据库中的东西坏了。运行'ghc-pkg check'来查看是否检测到'HTTP'断了。你也可以要求bootstrap更详细,'VERBOSE =“ - v2”。/ bootstrap.sh',我认为会导致足够的信息输出。 – 2013-04-21 14:08:57

回答

2

我在安装了Haskell平台的Mac上有同样的问题。运行ghc-pkg recache解决了它。