【问题标题】:yesod install fails是的安装失败
【发布时间】:2012-10-09 12:48:35
【问题描述】:

我通常发现 cabal 安装超过一半的大包失败,这对新用户来说是一个致命的缺陷!

这次我尝试安装yesod,有什么提示吗?

> cabal install yesod
  ...
Loading package time-1.2.0.5 ...

GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   _get_current_timezone_seconds
whilst processing object file
   C:\Users\guthrie\AppData\Roaming\cabal\time-1.2.0.5\ghc-7.4.1\HStime-1.2.0.5.o
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.

cabal: Error: some packages failed to install:
authenticate-1.3.1.1 depends on http-conduit-1.6.1.1 which failed to install.
http-conduit-1.6.1.1 failed during the building phase. The exception was:
ExitFailure 1
yesod-1.1.1.2 depends on yesod-core-1.1.2.1 which failed to install.
yesod-auth-1.1.1.1 depends on yesod-core-1.1.2.1 which failed to install.
yesod-core-1.1.2.1 failed during the building phase. The exception was:
ExitFailure 1
yesod-form-1.1.3 depends on yesod-core-1.1.2.1 which failed to install.
yesod-json-1.1.0 depends on yesod-core-1.1.2.1 which failed to install.
yesod-persistent-1.1.0 depends on yesod-core-1.1.2.1 which failed to install.

【问题讨论】:

  • 这可能是您的cabal 版本(或者可能是cabal 的Windows 版本)的问题。我刚刚从 Debian Wheezy 的 cabal 1.14.0 成功运行了安装过程。
  • C:\Users\me>cabal --version cabal-使用 Cabal 库的 1.14.0 版安装 0.14.0 版

标签: haskell yesod


【解决方案1】:

yesod 使用与 Haskell 平台不同版本的 alex 包。除了 ghc,我总是从我的发行版的包管理器中安装 alex 和快乐,然后使用 cabal。或者,您可以随时使用

cabal update && cabal install alex happy
cabal install yesod-platform

【讨论】:

    【解决方案2】:

    这很可能是由于尝试同时安装两个版本的 time 包而发生的。您可以尝试运行cabal install yesod-platform 看看问题是否仍然存在?

    正如@Inaimathi 所说,这可能是由于cabal 的旧版本造成的。或许也可以试试cabal update && cabal install cabal-install

    【讨论】:

    • 谢谢,在此之前我只是更新了 cabal-install。安装 yesod-platform 显示 14 个可能会被破坏的东西,并且在“无法安装的 http-conduit-1.6.1”上执行强制重新安装失败,并尝试单独安装它说它可能会破坏另一个 61事物。啊。我不确定我是否应该继续沿着这条多米诺骨牌链强制重新安装,说它们会破坏这么多东西??
    猜你喜欢
    • 2019-03-14
    • 1970-01-01
    • 1970-01-01
    • 2012-06-29
    • 1970-01-01
    • 1970-01-01
    • 2013-02-24
    • 1970-01-01
    • 2019-09-30
    相关资源
    最近更新 更多