2011-09-17 59 views
4

當您嘗試安裝庫reactie香蕉-WX,得到如下錯誤:安裝無功香蕉WX

src\CRUD.hs:10:18: Could not find module `Data.Map': It is a member of the hidden package `containers-0.4.0.0'. Perhaps you need to add `containers' to the build-depends in your .cabal file. 

安裝命令:

cabal install reactive-banana-wx 

請幫助解決這個問題。

+0

你有沒有嘗試以類似的方式安裝容器包(cabal安裝容器)? – Carsten

+0

@CarstenKönig:你不想這麼做:'containers'是一個GHC的啓動庫,因此不應該手動升級/構建。 – ivanm

回答

4

它提供的建議是健全的,如果有點混淆:cabal install隱藏它產生.cabal文件的步驟!下面是你如何明確地做到這一點:

cabal unpack reactive-banana-wx 
cd reactive-banana-wx-* 
gvim *.cabal # or whatever editor you prefer 
# follow the instructions given in the error 
cabal install 
+2

不要忘記聯繫維護者,以便在下一個版本中修復:) – hammar

+0

「隱藏產生'.cabal'文件的步驟」是什麼意思?該文件是tarball的一部分! – ivanm

+0

@ivanm個人而言,我正好使用'cabal install',因爲它隱藏了我的一切!這包括找出正確的URL來訪問tarball,獲取壓縮包,解壓它,檢查它的依賴關係,遞歸地爲任何缺少的進程執行此過程,配置它,構建它,將構建的庫放在正確的位置,告訴GHC關於新圖書館......它確實爲我們做了很多。我認爲把它「隱藏」的所有東西稱爲是完全公平的。 –