2017-10-13 104 views
0

我刚刚安装完整的Haskell平台从https://www.haskell.org/platform/windows.html到64位Windows 7机器上。我已经按照此页面的第3步。新的cabal安装重复错误

我必须安装此版本之前卸载8.0.2,8.2.1

无论命令我用阴谋运行现在它给出了同样的错误。请看下面的命令和错误序列。这是在一个空目录中完成的:

D:\test>cabal init 
dieVerbatim: user error (cabal: Failed to download 
http://objects-us-west-1.dream.io/hackage-mirror/root.json : No Status Code 
could be parsed from response: --17:29:30-- 
http://objects-us-west-1.dream.io/hackage-mirror/root.json 
=> `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145' 
Connecting to objects-us-west-1.dream.io:80... connected! 
HTTP request sent, awaiting response... 200 OK 
2 Content-Length: 3850 
3 Accept-Ranges: bytes 
4 Last-Modified: Mon, 12 Sep 2016 12:14:29 GMT 
5 ETag: "c5688ef68afb3f6186d35162423bd8c6" 
6 x-amz-request-id: tx0000000000000003f6055-0059e0e9ea-19c1b67c-default 
7 Content-Type: application/json 
8 Date: Fri, 13 Oct 2017 16:29:30 GMT 
9 Connection: keep-alive 
10 

0K ... 100% @ 3.67 MB/s 

17:29:30 (3.67 MB/s) - 
`C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145' saved 
[3850/3850] 


FINISHED --17:29:30-- 
Downloaded: 3,850 bytes in 1 files 
) 
D:\test>cabal configure 
dieVerbatim: user error (cabal: Failed to download 
http://objects-us-west-1.dream.io/hackage-mirror/root.json : No Status Code 
could be parsed from response: --17:29:35-- 
http://objects-us-west-1.dream.io/hackage-mirror/root.json 
=> `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145' 
Connecting to objects-us-west-1.dream.io:80... connected! 
HTTP request sent, awaiting response... 200 OK 
2 Content-Length: 3850 
3 Accept-Ranges: bytes 
4 Last-Modified: Mon, 12 Sep 2016 12:14:29 GMT 
5 ETag: "c5688ef68afb3f6186d35162423bd8c6" 
6 x-amz-request-id: tx0000000000000001249f3-0059e0e9f0-19c8c27c-default 
7 Content-Type: application/json 
8 Date: Fri, 13 Oct 2017 16:29:36 GMT 
9 Connection: keep-alive 
10 

0K ... 100% @ 3.67 MB/s 

17:29:36 (3.67 MB/s) - 
`C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145' saved 
[3850/3850] 


FINISHED --17:29:36-- 
Downloaded: 3,850 bytes in 1 files 
) 
D:\test>cabal install cabal-install 
dieVerbatim: user error (cabal: Failed to download 
http://objects-us-west-1.dream.io/hackage-mirror/root.json : No Status Code 
could be parsed from response: --17:29:45-- 
http://objects-us-west-1.dream.io/hackage-mirror/root.json 
=> `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet299511942' 
Connecting to objects-us-west-1.dream.io:80... connected! 
HTTP request sent, awaiting response... 200 OK 
2 Content-Length: 3850 
3 Accept-Ranges: bytes 
4 Last-Modified: Mon, 12 Sep 2016 12:14:29 GMT 
5 ETag: "c5688ef68afb3f6186d35162423bd8c6" 
6 x-amz-request-id: tx0000000000000003f626b-0059e0e9f9-19c1b67c-default 
7 Content-Type: application/json 
8 Date: Fri, 13 Oct 2017 16:29:45 GMT 
9 Connection: keep-alive 
10 

0K ... 100% @ 3.67 MB/s 

17:29:45 (3.67 MB/s) - 
`C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet299511942' saved 
[3850/3850] 


FINISHED --17:29:45-- 
Downloaded: 3,850 bytes in 1 files 
) 

它所指的临时文件不存在。我可以使用Chrome访问我的机器上的dream.io

我是Haskell/cabal开发的新手,很抱歉,如果我失去了一些明显的东西。

+3

[惊天动地问题#4747](https://开头github上。 com/haskell/cabal/issues/4747#issuecomment-327888643)有一些建议的解决方法,包括'cabal --http-transport = plain-http update'和“将wget或卷曲添加到路径” –

+0

您也可以尝试开始使用相反。有关于https://haskell-lang.org/get-started的说明。理论上,您的Haskell平台安装应该已经包含有效的堆栈安装。 –

+0

@thatotherguy解决方法为我工作 - 你想添加它作为答案,我会接受吗? – bcvery1

回答