4

一般に、大きなパッケージの半分以上の 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.
4

2 に答える 2

2

yesod は、Haskell プラットフォームとは異なるバージョンの alex パッケージを使用します。私は常に、ghc とは別にディストリビューションのパッケージ マネージャーから alex と happy をインストールしてから、cabal を使用します。または、いつでも使用できます

cabal update && cabal install alex happy
cabal install yesod-platform
于 2012-10-11T04:07:15.297 に答える
0

これは、time パッケージの 2 つのバージョンを同時にインストールしようとしたために発生する可能性があります。実行cabal install yesod-platformしてみて、問題が解決しないかどうかを確認できますか?

@Inaimathi が言ったように、これは古いバージョンのcabal. おそらくまた試してみてくださいcabal update && cabal install cabal-install

于 2012-10-09T15:25:52.423 に答える