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
时,我收到此错误:
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
这就是我在学校的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 :(得分:2)
我在安装了Haskell平台的Mac上遇到了同样的问题。
正在运行ghc-pkg recache
解决了它。