另一个在Ubuntu难度下安装Yesod

时间:2014-03-31 21:15:38

标签: haskell ubuntu yesod

环顾StackOverflow我看到了一堆类似的问题,但每个问题都与特定的库有关。

这是我的:

尝试运行时:

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中有什么东西坏了,或者这只是在我的机器上?

1 个答案:

答案 0 :(得分:1)

您正在尝试安装一个版本的yaml,它在管道上没有足够严格的下限。 Hackage上已有更新的版本。看起来您还没有运行cabal update