2014-03-31 42 views
0

環顧StackOverflow我看到一堆類似的問題,但每個都有關於特定的庫。另一個在Ubuntu上安裝Yesod難度

這裏是我的:

當試圖運行:

cabal install yesod 

我得到

Resolving dependencies... 
Configuring yaml-0.8.7... 
Building yaml-0.8.7... 
Preprocessing library yaml-0.8.7... 

Data/Yaml/Parser.hs:15:8: 
    Could not find module `Data.Conduit.Lift' 
    Perhaps you meant 
     Data.Conduit.List (from conduit-1.0.8) 
     Data.Conduit.List (needs flag -package conduit-1.0.5.1) 
     Data.Conduit.Text (needs flag -package conduit-1.0.5.1) 
    Use -v to see a list of the files searched for. 
Failed to install yaml-0.8.7 
Configuring yesod-core-1.2.10... 
Building yesod-core-1.2.10... 
Preprocessing library yesod-core-1.2.10... 

Yesod/Core/Json.hs:47:8: 
    Could not find module `Data.Conduit.Lift' 
    Perhaps you meant 
     Data.Conduit.List (from conduit-1.0.8) 
     Data.Conduit.List (needs flag -package conduit-1.0.5.1) 
     Data.Conduit.Text (needs flag -package conduit-1.0.5.1) 
    Use -v to see a list of the files searched for. 
Failed to install yesod-core-1.2.10 
cabal: Error: some packages failed to install: 
yaml-0.8.7 failed during the building phase. The exception was: 
ExitFailure 1 
yesod-1.2.5.2 depends on yesod-core-1.2.10 which failed to install. 
yesod-auth-1.3.0.2 depends on yesod-core-1.2.10 which failed to install. 
yesod-core-1.2.10 failed during the building phase. The exception was: 
ExitFailure 1 
yesod-form-1.3.8.1 depends on yesod-core-1.2.10 which failed to install. 
yesod-persistent-1.2.2.2 depends on yesod-core-1.2.10 which failed to install. 

東西在Hackage破裂或者這只是我的機器上?

+0

你提到Ubuntu,但是你不會告訴我們你從Ubuntu上拿什麼軟件包(只是ghc?還有一些libghc-foo-dev軟件包,例如libghc-conduit-dev?),以及你從hackage。 –

+0

更新:剛剛意識到我給錯了信息。這條消息來自於試圖用cabal安裝yesod。只有haskell平臺與apt-get一起安裝。 – interstar

回答

1

您正試圖安裝yaml的版本,該版本在導管上沒有嚴格的下限。 Hackage已經有了一個更新的版本。它看起來像你還沒有運行cabal update

+0

似乎yaml和導管之間存在某種不兼容性。我的帳戶已更新。如果我嘗試自己安裝yaml,那麼它似乎工作(我得到yaml-0.8.8.1)。如果我嘗試然後重新安裝導管,我得到:爲了安裝以下內容: conduit-1.0.17.1(重新安裝) cabal:以下軟件包很可能被重新安裝打壞: yaml-0.8.8.1 – interstar

+0

如果您嘗試運行'cabal install yesod-platform',會發生什麼情況?總的來說,聽起來好像你在分發提供的軟件包和你想從Hackage安裝的軟件之間有衝突,就像@Joachim Breitner正在做的那樣。 –

+0

它告訴我它將安裝的所有東西。然後給了我一大堆「很可能被重新安裝破壞」的東西:「包括yaml.0.8.8.1和conduit-1.0.8和conduit-1.0.17.1 – interstar