如何让Cabal绕过Windows代理设置? [英] How do I get Cabal to bypass my Windows proxy settings?

查看:132
本文介绍了如何让Cabal绕过Windows代理设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Cabal检索软件包时,经常会出现此消息错误:

When retrieving packages with Cabal, I frequently get errors with this message:


用户错误(Codec.Compression.Zlib:
压缩流过早结束)

user error (Codec.Compression.Zlib: premature end of compressed stream)

Cabal似乎在使用我的Windows网络代理设置(用于Privoxy)。

It looks like Cabal is using my Windows Networking proxy settings (for Privoxy).

通过在Google周围进行挖掘,Cabal或其图书馆似乎在该地区出现了
问题。

From digging around Google, Cabal or its libraries appear to have (had) a problem in this area.

我看到的可能解决方案是:

Possible solutions I can see are:


  1. 关闭代理在使用Cabal时(不太热衷于此);或

  1. Turn off proxying while using Cabal (not very keen on this one); or

获取补丁并开始黑客入侵。我犹豫要走这条路,因为我是一个完整的Haskell新手,而且对Darcs尚不满意,所以
;或

Get a patch and start hacking. I'm hesitant to go down this path, as I'm a complete Haskell noob and I'm not yet comfortable with Darcs; or

给它一个神奇的我可以没有代理参数。因此就是问题。

Give it the magic "can I haz no proxy" parameter. Hence the question.


推荐答案

如果我正在阅读 http://darcs.haskell.org/cabal-install/Distribution/Client/HttpUtils。 hs 正确,您应该可以将环境变量HTTP_PROXY设置为无效值(有效吗?),使其直接运行。

If I'm reading http://darcs.haskell.org/cabal-install/Distribution/Client/HttpUtils.hs correctly, you should be able to set the environment variable HTTP_PROXY to an invalid value (would "" work?) to get it to go direct.

这篇关于如何让Cabal绕过Windows代理设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆