1

我尝试在两台 Ubuntu 机器上安装 Yesod / EclipseFP / Haskell Platform 2012.02。

这可能吗?

(我是 Yesod/Haskell 的新手,无法解释错误,除了它们看起来像两件事需要其他东西的不兼容版本。)

哪个项目是问题的原因?(即我可以向谁寻求修复。)

cabal install yesod-platform
Resolving dependencies...
In order, the following would be installed:
cereal-0.3.5.1 (new version)
crypto-api-0.10.2 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
crypto-conduit-0.3.2 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
crypto-pubkey-types-0.1.1 (reinstall)
cryptocipher-0.3.4 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
cprng-aes-0.2.3 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
cryptohash-0.7.5 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
hamlet-1.0.1.3 (reinstall) changes: blaze-html-0.4.3.4 -> 0.5.0.0,
blaze-markup-0.5.1.0 added
hxt-charproperties-9.1.1 (new package)
hxt-regex-xmlschema-9.0.4 (new package)
hxt-unicode-9.0.2 (new package)
hxt-9.2.2 (new package)
pem-0.1.1 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
certificate-1.2.3 (reinstall)
persistent-0.9.0.4 (reinstall) changes: blaze-html-0.4.3.4 -> 0.5.0.0,
blaze-markup-0.5.1.0 added
persistent-template-0.9.0.2 (reinstall)
pureMD5-2.1.0.3 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
pwstore-fast-2.2 (reinstall)
silently-1.1.5 (new package)
hspec-1.1.1 (new package)
skein-0.1.0.7 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
clientsession-0.7.5 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
socks-0.4.1 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
system-fileio-0.3.7 (new package)
filesystem-conduit-0.4.0 (new package)
tagstream-conduit-0.3.2 (new package)
html-conduit-0.0.1 (new package)
tls-0.9.5 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
tls-extra-0.4.6 (reinstall)
http-conduit-1.4.1.7 (new version)
authenticate-1.2.1.1 (reinstall) changes: http-conduit-1.4.1.8 -> 1.4.1.7
wai-app-static-1.2.0.3 +blaze_html_0_5 (reinstall) changes: blaze-html-0.4.3.4
-> 0.5.0.0, blaze-markup-0.5.1.0 added
wai-test-1.2.0.2 (new package)
xml2html-0.1.2.3 (new package)
yaml-0.7.0.2 (new version)
yesod-core-1.0.1.2 (reinstall) changes: blaze-html-0.4.3.4 -> 0.5.0.0,
blaze-markup-0.5.1.0 added, cereal-0.3.5.2 -> 0.3.5.1
yesod-default-1.0.1.1 (reinstall) changes: yaml-0.7.0.3 -> 0.7.0.2
yesod-json-1.0.0.1 (reinstall)
yesod-persistent-1.0.0.1 (reinstall)
yesod-form-1.0.0.4 (reinstall) changes: blaze-html-0.4.3.4 -> 0.5.0.0,
blaze-markup-0.5.1.0 added
yesod-auth-1.0.2.1 (reinstall) changes: blaze-html-0.4.3.4 -> 0.5.0.0,
blaze-markup-0.5.1.0 added, http-conduit-1.4.1.8 -> 1.4.1.7
yesod-1.0.1.6 (reinstall) changes: blaze-html-0.4.3.4 -> 0.5.0.0,
blaze-markup-0.5.1.0 added
yesod-static-1.0.0.3 (reinstall) changes: cereal-0.3.5.2 -> 0.3.5.1
yesod-test-0.2.0.6 (new package)
yesod-platform-1.0.4.2 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
http-conduit-1.4.1.8
scion-browser-0.2.8
persistent-sqlite-0.9.0.2
Use --force-reinstalls if you want to install anyway.

使用 --force-reinstalls 后:

$ yesod devel
Yesod devel server. Press ENTER to quit
Resolving dependencies...
Configuring testod-0.0.0...
cabal: The following installed packages are broken because other packages they
depend on are missing. These broken packages must be rebuilt before they can
be used.
package http-conduit-1.4.1.8 is broken due to missing package
certificate-1.2.3-a05e9030a2a8a075ff79563ce724647f,
cprng-aes-0.2.3-1648d64e2ac56f39c0dcb6acde6ed388,
socks-0.4.1-cd9ac1186a4f1e3982305532e73a5f6b,
tls-0.9.5-698768ee49b4307eb7454e343d7065b9,
tls-extra-0.4.6-db5b6ed8052b04a05050ab7ec33b2fd5
package persistent-sqlite-0.9.0.2 is broken due to missing package
persistent-0.9.0.4-50e8d5b2fab89513513d3d0a8c25a57c
Rebuilding application...
Forcing recompile for ./Model.hs because of config/models
Forcing recompile for ./Foundation.hs because of config/routes
Forcing recompile for ./Foundation.hs because of messages/en.msg
Forcing recompile for ./Foundation.hs because of templates/default-layout-wrapper.hamlet
Forcing recompile for ./Foundation.hs because of templates/default-layout.hamlet
Forcing recompile for ./Handler/Home.hs because of templates/homepage.hamlet
cabal: Run the 'configure' command first.
Build failure, pausing...
^C
$ cabal configure
Resolving dependencies...
Configuring testod-0.0.0...
cabal: The following installed packages are broken because other packages they
depend on are missing. These broken packages must be rebuilt before they can
be used.
package http-conduit-1.4.1.8 is broken due to missing package
certificate-1.2.3-a05e9030a2a8a075ff79563ce724647f,
cprng-aes-0.2.3-1648d64e2ac56f39c0dcb6acde6ed388,
socks-0.4.1-cd9ac1186a4f1e3982305532e73a5f6b,
tls-0.9.5-698768ee49b4307eb7454e343d7065b9,
tls-extra-0.4.6-db5b6ed8052b04a05050ab7ec33b2fd5
package persistent-sqlite-0.9.0.2 is broken due to missing package
persistent-0.9.0.4-50e8d5b2fab89513513d3d0a8c25a57c
4

1 回答 1

1

我将所有东西都建立在 CLEAN 安装上(没有以前的 yesod 平台)。我已经安装了 Haskell Platform、BuildWrapper、Scion-browser 和 yesod-platform。不过,它似乎安装了 http-conduit-1.4.1.7,所以也许 1.4.1.8 不兼容?无论如何,没有什么能阻止你继续使用 --force-reinstalls 进行安装,然后重新安装 persistent-sqlite 和 scion-browser。只有重新安装这些中断是一个问题......

于 2012-06-07T15:53:10.957 回答