0

Windows 7 x64 SP1 Russian, Virtual machine (VMware) are located on server.

I installed the Haskell from official site yesterday. But I have a problem when I start the command: cabal update. Error message:

C:\Users\admin>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 "Error HTTP code: 407"

Internet access is exists. The command ran under admin profile. How can I to correct this issue?

P.S. When I did the same on my home notebook - all worked fine, without this message.

Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182

1 Answers1

1

Http status code 407 means "Proxy authentication required". So it seems to be local issue with proxy configuration.

See also: cabal can't use http proxy

Add: cabal uses fetchProxy from HTTP package, it should read IE proxy config. I don't use windows, so I have no idea what can be wrong. You can try to call fetchProxy manually and see what it returns. If it returns correct value, then open issue on cabal tracker. Otherwise, open issue in HTTP package tracker.

Community
  • 1
  • 1
Yuras
  • 13,856
  • 1
  • 45
  • 58
  • Is the `cabal` don't read the settings of connecting from the Internet Explorer? – Andrey Bushman Sep 30 '14 at 08:22
  • How can I do authentication for this case? The `cabal` program has not asked the login and password for the proxy authentication. – Andrey Bushman Sep 30 '14 at 08:28
  • I updated the answer with more details about proxy. But I'm not even sure `cabal` supports proxy authentication at all... – Yuras Sep 30 '14 at 08:38
  • cabal supports proxy authentication, but the best way to do so is to set your env variables in the shell. – sclv Feb 27 '15 at 02:46