安装了Haskell Platform 2013.2.0.0,并使用Win7 cmd:
运行命令" cabal update" 我得到了以下输出:
Downloading the latest package list from hackage.haskell.org
cabal: Failed to download http://hackage.haskell.org/packages/archive/00-index.tar.gz
: ErrorMisc "Unsucessful HTTP code: 400"
为了确认链接正常,我在网络浏览器上访问了它。
在这个阶段,我对如何解决问题感到困惑。
另外,我不确定这是否会有所帮助,但这是我在运行时得到的结果" cabal update -v3"
Downloading the latest package list from hackage.haskell.org
Sending:
GET /packages/archive/00-index.tar.gz HTTP/1.1
Host: hackage.haskell.org
User-Agent: cabal-install/1.16.0.2
Creating new connection to hackage.haskell.org
Received:
HTTP/1.1 400 Bad Request
Server: nginx/1.6.0
Date: Thu, 31 Jul 2014 16:24:24 GMT
Content-Type: text/html
Content-Length: 172
Connection: close
cabal: Failed to download
http://hackage.haskell.org/packages/archive/00-index.tar.gz : ErrorMisc
"Unsucessful HTTP code: 400"
答案 0 :(得分:2)
我可以通过禁用防病毒和防火墙在我的机器中解决此问题,希望它会有所帮助。