继@ SAMB的建议,并试验了一下,现在我使用的解决方案是:
export HTTP_PROXY="::"
这里的实验记录的一部分:
尝试@ SAMB的解决方案:
[12:10:35z ~]:export HTTP_PROXY=""
[12:11:47z ~]:set|grep HTTP
HTTP_PROXY=
[12:11:50z ~]:cabal update
Downloading the latest package list from hackage.haskell.org
cabal.exe: connect: failed (Connection refused (WSAECONNREFUSED))
尝试一个“合理的人”的解决方案:
[12:11:54z ~]:export HTTP_PROXY="None"
[12:12:02z ~]:set|grep HTTP
HTTP_PROXY=None
[12:12:04z ~]:cabal update
Downloading the latest package list from hackage.haskell.org
cabal.exe: user error [\]
(openTCPConnection: host lookup failure for "None")
尝试的 “不讲道理的人的” 解决方案:
[12:23:44z ~]:export HTTP_PROXY="::"
[12:24:00z ~]:set|grep HTTP
HTTP_PROXY=::
[12:24:04z ~]:cabal update
Downloading the latest package list from hackage.haskell.org
Warning: invalid http proxy uri: "::"
Warning: proxy uri must be http with a hostname
Warning: ignoring http proxy, trying a direct connection
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
[12:24:34z ~]:
耶!
谢谢你。我现在正在路上,希望能在复活节中尝试一下。 – 2010-03-30 09:49:53
好,经过测试。我遵循了你的指导方针,并最终将其付诸实施。我接受了您的答案+1,并根据您的提示发布了我的解决方案。再次感谢。 – 2010-04-03 11:27:17