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
这就是我在 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
有什么解决办法吗?我在谷歌上尝试了一些解决方案,但都没有奏效......