2014-11-24 59 views
1

出小集團安裝錯誤安裝陰謀-install命令我收到以下錯誤陰謀安裝使用Linux版本(CentOS 6.6)。當我嘗試運行小集團上午在Linux上

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 

注:caball安裝版本0.10。 2 使用驚天動地庫1.10.2.0版本
GHC版本7.0.4
哈斯克爾平臺,2011.4.0.0-6.el6.x86_64

如何解決it.pls幫助!

+0

那些版本很古老。你可能想重新安裝cabal/ghc。 – Zeta 2014-11-24 10:53:49

+0

你可以給我一個鏈接下載最新版本。如果我嘗試下載這些文件,使用yum install命令只能獲取較舊的版本。我應該更新存儲庫還是應該怎麼做才能解決這些依賴性問題? – vidhya 2014-11-24 11:03:45

+0

我建議看看:https://github.com/bitemyapp/learnhaskell#getting-started https://github.com/fpco/stackage/wiki/Preparing-your-system-to-use-Stackage#other -linux – 2014-11-24 12:12:00

回答

0

此問題是由於舊版本的ghc-7.0.4.I從here下載了ghc 7.8.3源碼tarball並安裝了它。

然後ghc 7.8.3有舊版本的cabal,所以必須從ghc 7.8.3使用 ghc unregister Cabal取消註冊。

然後從cabal-install-1.20文件夾運行bootstrap.sh併成功獲得cabal-install 1.20。