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
任何解決方案? 我已經嘗試了谷歌上的一些解決方案,但沒有一個工作...
MacPorts如何?我使用MacPorts和IIRC的Haskell平臺,安裝非常簡單。 – zoul 2013-04-21 07:09:53
訪問cabal-install的標準解決方案是下載[Haskell Platform](http://www.haskell.org/platform/)。這是獲得ghc和cabal-install的第一站。如果你有妨礙這個的約束,你可以將它們包含在你的問題中。 – Davorak 2013-04-21 11:02:06
第一個'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