在Windows XP上的Haskell Platform 2012.2.0.0上安装yesod时出错

时间:2012-07-04 07:59:39

标签: haskell yesod haskell-platform

我相信尝试使用“cabal install yesod-platform”安装yesod但是  安装中止,出现以下错误:

cabal: Error: some packages failed to install:
 authenticate-1.2.1.1 depends on zlib-conduit-0.4.0.2 which failed to
 install.
 http-conduit-1.4.1.10 depends on zlib-conduit-0.4.0.2 which failed to
 install.
 wai-extra-1.2.0.5 depends on zlib-conduit-0.4.0.2 which failed to install.
 xss-sanitize-0.3.2 failed while unpacking the package. The exception was:
 user error (truncated tar archive)
 yesod-1.0.1.6 depends on zlib-conduit-0.4.0.2 which failed to install.
 yesod-auth-1.0.2.1 depends on zlib-conduit-0.4.0.2 which failed to install.
 yesod-core-1.0.1.2 depends on zlib-conduit-0.4.0.2 which failed to install.
 yesod-default-1.0.1.1 depends on zlib-conduit-0.4.0.2 which failed to
 install.
 yesod-form-1.0.0.4 depends on zlib-conduit-0.4.0.2 which failed to install.
 yesod-json-1.0.0.1 depends on zlib-conduit-0.4.0.2 which failed to install.
 yesod-persistent-1.0.0.1 depends on zlib-conduit-0.4.0.2 which failed to
 install.
 yesod-platform-1.0.5 depends on zlib-conduit-0.4.0.2 which failed to
 install.
 yesod-routes-1.0.1.2 failed while unpacking the package. The exception was:
 user error (truncated tar archive)
 yesod-static-1.0.0.3 depends on zlib-conduit-0.4.0.2 which failed to
 install.
 zlib-conduit-0.4.0.2 failed while unpacking the package. The exception was:
 user error (truncated tar archive)

任何想法如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

看起来zlib-conduit包没有正确下载。删除下载并重试:

  1. find out where your cabal directory is
    1. 启动ghci
    2. :m System.Directory
    3. getAppUserDataDirectory "cabal"
  2. 删除cabal目录的packages\hackage.haskell.org\zlib-conduit子目录
  3. 运行cabal update
  4. 重新运行cabal install yesod-platform
  5. (可能不需要步骤3,但不会受到伤害。)