与cabal更新错误 [英] Error with cabal update
问题描述
在全新安装的Haskell-Platform(64位OSX版本,来自 http:// www .haskell.org / platform / mac.html )我收到以下错误消息:
On a fresh install install of Haskell-Platform (64 bit OSX version from http://www.haskell.org/platform/mac.html) I get the following error:
Downloading the latest package list from hackage.haskell.org
Warning: http error: Network.Browser.request: Error raised ErrorParse "Invalid
cabal: Char.intToDigit: not a digit -1
发出命令 cabal update
后,没有任何搜索结果,我不知道
After issuing the command cabal update
. No luck with any searches and I have no idea where this error is coming from.
推荐答案
Here's the relevant bug ticket on the HTTP tracker: https://github.com/haskell/HTTP/issues/98
对于某些网络配置,这似乎是一个(罕见的)问题,导致(稍)无效的结果被返回,并且HTTP库过于严格。
It seems to be a (rare) issue with certain network configurations that result in (slightly) invalid results being returned and the HTTP library being overly strict.
安装最近版本的 cabal
可执行文件(一个二进制文件可从cabal网站下载)将提供一种解决方法,因为默认传输(并且可配置)是https,而不是http,并且该传输将调用到 curl
或 wget
,它们在处理分析http响应的方式上更为宽松。
Installing a recent version of the cabal
executable (a binary is available for download from the cabal website) will provide a workaround, in that the default transport (and it is configurable) is https, not http, and that transport will call out to curl
or wget
, which are more lax in how they handle parsing http responses.
这篇关于与cabal更新错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!