【问题标题】:cabal install hangs installing yesod-platformcabal install 挂起安装 yesod-platform
【发布时间】:2014-10-09 22:30:24
【问题描述】:

yesod-platform 的 cabal 安装挂起下载 xss-sanitize。 NetHogs 未显示与此下载相关的网络活动。

$ cabal install yesod-platform
Resolving dependencies...
Downloading xss-sanitize-0.3.4...

其他软件包立即下载和安装。

我在 Fedora 18 上。haskell-platform 和 cabal-install 是来自 repos 的最新版本。

$ cabal --version
cabal-install version 0.14.0
using version 1.14.0 of the Cabal library

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.1

编辑

我让它运行了一夜,它似乎放弃了 xss-sanitizer,并继续安装其他依赖项。这是尾巴。

...
Configuring yesod-test-1.2.1...
Building yesod-test-1.2.1...
Preprocessing library yesod-test-1.2.1...
[1 of 3] Compiling Yesod.Test.CssQuery ( Yesod/Test/CssQuery.hs, dist/build/Yesod/Test/CssQuery.o )
[2 of 3] Compiling Yesod.Test.TransversingCSS ( Yesod/Test/TransversingCSS.hs, dist/build/Yesod/Test/TransversingCSS.o )
[3 of 3] Compiling Yesod.Test       ( Yesod/Test.hs, dist/build/Yesod/Test.o )

Yesod/Test.hs:113:1:
    Warning: In the use of `runFakeHandler'
             (imported from Yesod.Core, but defined in yesod-core-1.2.4.2:Yesod.Core.Internal.Run):
             "Usually you should *not* use runFakeHandler unless you really understand how it works and why you need it."
Registering yesod-test-1.2.1...
Installing library in /home/smithd/.cabal/lib/yesod-test-1.2.1/ghc-7.4.1

cabal: Error: some packages failed to install:
xss-sanitize-0.3.4 failed while downloading the package. The exception was:
<socket: 4>: hGetBufSome: timeout (Connection timed out)
yesod-1.2.2.1 depends on xss-sanitize-0.3.4 which failed to install.
yesod-auth-1.2.2.1 depends on xss-sanitize-0.3.4 which failed to install.
yesod-form-1.3.2.1 depends on xss-sanitize-0.3.4 which failed to install.
yesod-platform-1.2.4.2 depends on xss-sanitize-0.3.4 which failed to install.
[smithd@lin2900 ~]$ cabal install yesod-platform

【问题讨论】:

  • 您是否尝试过下载包的 tar 并在本地构建/安装它?
  • 这种情况是每次发生还是偶尔发生?此外,0.14 版本已经发布了两年。
  • 在这个包上总是一样的,但其他包不受影响。我周六在 Fedora 19 上安装没有问题。
  • @bheklilr - wget hackage.haskell.org/package/xss-sanitize-0.3.4/… 开始下载但从未完成。可以毫无问题地获取其他软件包。可能是我的公司过滤器,但不太可能。今晚将在家尝试。
  • @dsmith 试试这个链接 -> dropbox.com/s/xbho5k3z44p412x/xss-sanitize-0.3.4.tar.gz。由于它是保管箱,因此您可能必须通过浏览器进行操作。或者,如果您不信任随机陌生人的 Dropbox 链接,您可以从开发者的 github github.com/yesodweb/haskell-xss-sanitize 获取它。

标签: haskell yesod cabal-install


【解决方案1】:

我公司的互联网过滤器将 haskell-xss-sanitize 包作为可能的 XSS 威胁进行了拦截。特别是测试模块。如果可能,请让您的管理员加入白名单。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-04
    相关资源
    最近更新 更多