繼@ 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