2009-08-09 22 views
5

我看到有一個很好的包系統叫Cabal處理依賴關係的解決。所以我試圖安裝它,以便我可以爲我安裝Haskell OpenGL模塊。但是,Cabal本身有很多依賴關係。有沒有辦法安裝Cabal而無需手動解決所有依賴關係?我嘗試運行bootstrap,但似乎沒有這樣做,因爲它報告缺少模塊parsec和網絡(它們依次具有自己的依賴關係)。安裝haskell cabal w/o手動依賴分辨率

手動建立DEP的讓我約3深前MTL模塊安裝crapped了對我道:

[email protected]:~/haskell/mtl-1.1.0.2$ runghc Setup build 
Preprocessing library mtl-1.1.0.2... 
Building mtl-1.1.0.2... 

Control/Monad/Cont.hs:74:7: 
    Could not find module `Control.Monad': 
     Perhaps you haven't installed the profiling libraries for package base? 
     Use -v to see a list of the files searched for. 

回答

10

您應該安裝Haskell Platform( 「內含電池」)

+0

謝謝!正是我需要的。 – nont 2009-08-09 19:39:41

+2

雖然這有幫助,但我後來安裝了Haskell平臺,並嘗試編譯它時出現同樣的錯誤。我能夠通過在ubuntu上執行此操作來獲得它:apt-get install libghc6-mtl-dev Found on:http://rubynugs.blogspot.com/2007/12/next-haskell-error-controlmonadreader.html – nont 2009-11-03 01:34:36

+2

和:sudo apt-get install libghc6-mtl-prof – nont 2009-11-03 02:19:36