【发布时间】:2015-03-01 15:15:36
【问题描述】:
我是 Haskell 的新手,正在尝试在 Windows 7 上安装 Snap (http://snapframework.com)。我已经安装了 GHCi 和 cabal。 开始做与网站文档中解释的相同的事情,但我有下一个例外:
cabal 安装快照
Resolving dependencies...
Downloading blaze-builder-0.3.3.2...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install blaze-builder-0.3.3.2
Downloading byteable-0.1.1...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install byteable-0.1.1
Downloading crypto-api-0.12.2.2...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install crypto-api-0.12.2.2
Downloading enumerator-0.4.20...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install enumerator-0.4.20
Downloading extensible-exceptions-0.1.1.4...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install extensible-exceptions-0.1.1.4
Downloading generic-deriving-1.6.2...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install generic-deriving-1.6.2
Downloading logict-0.6.0.1...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install logict-0.6.0.1
Downloading mwc-random-0.13.1.0...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install mwc-random-0.13.1.0
Downloading safe-0.3.3...
Warning: http error: Network.Browser.request: Error raised ErrorParse
"parseResponseHead Response status line parse failure: <html>\r\n"
Failed to install safe-0.3.3
Downloading transformers-compat-0.1.1.1...
Yesod 也发生了同样的事情,所以似乎 cabal 在 Windows 7 上不是很好的工作,或者在开始通过 cabal 安装任何软件包之前需要应用一些神奇的配置
【问题讨论】:
-
您在防火墙后面吗?乍一看,似乎所有互联网流量都被重定向到 HTML 页面,可能需要某种身份验证或使用条款....您能验证常规互联网浏览是否正常工作吗?
-
这绝对看起来像是防火墙或代理问题,据我所知,cabal 不会下载 HTML 文件。
-
通常在第一次安装软件包之前,您应该运行
cabal update以从hackage 获取最新信息。看看有没有帮助。 -
Cabal 将使用默认网络配置在 W7 上工作。 “解决方法”是只下载软件包并从磁盘安装。