2

安裝無功香蕉WX我只是做了新鮮的Ubuntu 12.04的一邊拉下哈斯克爾平臺安裝apt-get和當我嘗試安裝無功香蕉WX我得到:卡瓦爾在Ubuntu 12.04

cabal install reactive-banana-wx 
Resolving dependencies... 
In order, the following would be installed: 
deepseq-1.3.0.0 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3 
containers-0.4.2.1 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3 
Cabal-1.14.0 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3 
fgl-5.4.2.4 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3, mtl-2.0.1.0 -> 2.1 
regex-base-0.93.2 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3 
regex-posix-0.95.1 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3 
regex-compat-0.95.1 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3 
template-haskell-2.7.0.0 (reinstall) 
fclabels-1.1.3 (new package) 
text-0.11.2.0 (new version) 
hashable-1.1.2.3 (new package) 
time-1.4.0.1 (new version) 
hslogger-1.1.5 (reinstall) changes: time-1.4 -> 1.4.0.1 
random-1.0.1.1 (reinstall) changes: time-1.4 -> 1.4.0.1 
MissingH-1.1.1.0 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3 
QuickCheck-2.4.2 (reinstall) 
cabal-macosx-0.2.2 (new package) 
unordered-containers-0.2.1.0 (new package) 
vault-0.2.0.0 (new package) 
reactive-banana-0.5.0.3 (new package) 
wxdirect-0.90.0.1 (new package) 
wxcore-0.12.1.7 (new package) 
wx-0.12.1.6 (new package) 
reactive-banana-wx-0.5.0.0 (new package) 
cabal: The following packages are likely to be broken by the reinstalls: 
time-1.4 
xmonad-contrib-0.10 
haskell98-2.0.0.1 
text-0.11.1.13 
parsec-3.1.2 
network-2.3.0.10 
cgi-3001.1.8.2 
HTTP-4000.2.2 
parallel-3.2.0.2 
containers-0.5.0.0 
xmonad-0.10 
ghc-7.4.1 
hpc-0.5.1.1 
hoopl-3.8.7.3 
binary-0.5.1.0 
bin-package-db-0.0.0.0 
GLUT-2.1.2.1 
Use --force-reinstalls if you want to install anyway. 

當我強迫重裝我得到:

Control/DeepSeq.hs:56:1: 
    array-0.3.0.3:Data.Array can't be safely imported! The module itself isn't safe. 
cabal: Error: some packages failed to install: 
Cabal-1.14.0 depends on deepseq-1.3.0.0 which failed to install. 
MissingH-1.1.1.0 depends on deepseq-1.3.0.0 which failed to install. 
QuickCheck-2.4.2 depends on deepseq-1.3.0.0 which failed to install. 
cabal-macosx-0.2.2 depends on deepseq-1.3.0.0 which failed to install. 
containers-0.4.2.1 depends on deepseq-1.3.0.0 which failed to install. 
deepseq-1.3.0.0 failed during the building phase. The exception was: 
ExitFailure 1 
fclabels-1.1.3 depends on deepseq-1.3.0.0 which failed to install. 
fgl-5.4.2.4 depends on deepseq-1.3.0.0 which failed to install. 
hashable-1.1.2.3 depends on deepseq-1.3.0.0 which failed to install. 
hslogger-1.1.5 depends on deepseq-1.3.0.0 which failed to install. 
random-1.0.1.1 depends on deepseq-1.3.0.0 which failed to install. 
reactive-banana-0.5.0.3 depends on deepseq-1.3.0.0 which failed to install. 
reactive-banana-wx-0.5.0.0 depends on deepseq-1.3.0.0 which failed to install. 
regex-base-0.93.2 depends on deepseq-1.3.0.0 which failed to install. 
regex-compat-0.95.1 depends on deepseq-1.3.0.0 which failed to install. 
regex-posix-0.95.1 depends on deepseq-1.3.0.0 which failed to install. 
template-haskell-2.7.0.0 depends on deepseq-1.3.0.0 which failed to install. 
text-0.11.2.0 depends on deepseq-1.3.0.0 which failed to install. 
time-1.4.0.1 depends on deepseq-1.3.0.0 which failed to install. 
unordered-containers-0.2.1.0 depends on deepseq-1.3.0.0 which failed to 
install. 
vault-0.2.0.0 depends on deepseq-1.3.0.0 which failed to install. 
wx-0.12.1.6 depends on deepseq-1.3.0.0 which failed to install. 
wxcore-0.12.1.7 depends on deepseq-1.3.0.0 which failed to install. 
wxdirect-0.90.0.1 depends on deepseq-1.3.0.0 which failed to install. 

如何,我也許能解決這個問題的任何想法或我必須等待依賴性更新或哈斯克爾平臺的新版本?如果可能的話,我想盡可能保持與Ubuntu上的標準安裝接近。

謝謝!

+0

你有更好的運氣與http://askubuntu.com/ – msw

+4

@msw不,這是一個Haskell的事情,Ubuntu是偶然的這個問題。 –

回答

3

第一:不要強行的arraycontainers重新安裝。這很可能會導致已安裝軟件包的大規模破損。

(或至少一個)問題是reactive-banana-wx-0.5.0.0特別依賴於wxcore-0.12.1.7,而wxcore-0.12.1.7依次指定依賴項array < 0.4。允許array-0.4。*上傳到hackage的wxcore版本是0.13.2.1和0.90。但是,兩者都未能用ghc-7.4在hackage上構建。

這可能是可以通過下載一些包和編輯他們的.cabal文件的放鬆依賴於建立反應香蕉-WX與GHC-7.4,但我不能猜測它是否更有前途的編輯功香蕉WX .cabal文件以允許稍後的wx包或由reactive-banana-wx指定的wx包的文件允許以後的陣列,容器和類似文件。

我會建議通知作者/維護者的反應性香蕉,並讓他整理出來。

另外,降級Haskell的實現在使用GHC-7.2或7.0,如果你是與無功香蕉WX打得非常激烈。

+2

(我是反應香蕉的作者)。據我所知,目前的Haskell平臺仍然在GHC 7.0.4和array-0.3。*,所以OP有了新的東西。我打算儘快發佈reactive-banana-wx-0.6.0.0(https://github.com/HeinrichApfelmus/reactive-banana/tree/release-0.6.0.0),但我無法測試它是否適用於兩者wx-0.13和wx-0.90。 –

+0

看起來你是對的。所以OP可能會說它是包的平臺。無論如何,array-0.4。*表示OP有ghc-7.4。 –

+0

是的,ubuntu 12.04絕對默認ghc 7.4.1在haskell平臺中@HeinrichApfelmus感謝您關注此事,我真的很高興開始將我的代碼連接到Guis的haskell –