Ошибка установки yesod на платформе Haskell 2012.2.0.0 в Windows XP

Я надеюсь, что попытался установить yesod с помощью "cabal install yesod-platform", но установка была прервана со следующей ошибкой:

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 ответ

Решение

Похоже, пакет zlib -озиум не загружен должным образом. Удалите загрузку и попробуйте снова:

  1. узнай, где находится твой кабинет
    1. начать GHCI
    2. :m System.Directory
    3. getAppUserDataDirectory "cabal"
  2. удалить packages\hackage.haskell.org\zlib-conduit подкаталог вашей кабальной директории
  3. бежать cabal update
  4. повторный показ cabal install yesod-platform

(Шаг 3, вероятно, не нужен, но не повредит.)

Другие вопросы по тегам