SV: Cabal can't open a TCP connection

Niklas Larsson metaniklas at gmail.com
Thu May 8 14:25:15 UTC 2014


Looks like your proxy configuration is wrong. Git has its  own proxy settings in .gitconfig. Look at the http_proxy environment variable.

If you're not actually behind a proxy the problem could be the existence of http_proxy or HTTP_PROXY.

----- Ursprungligt meddelande -----
Från: "Simon Peyton Jones" <simonpj at microsoft.com>
Skickat: ‎2014-‎05-‎08 14:04
Till: "ghc-devs at haskell.org" <ghc-devs at haskell.org>
Kopia: "Simon Marlow" <marlowsd at gmail.com>
Ämne: Cabal can't open a TCP connection

Dear ghc-devs
Cabal can’t open a TCP connection from my Linux box.  It used to work fine.  Here’s what it says:
cabal -v3 update
Downloading the latest package list from hackage.haskell.org
Sending:
GET http://hackage.haskell.org/packages/archive/00-index.tar.gz HTTP/1.1
User-Agent: cabal-install/1.16.0.2
Host: hackage.haskell.org
proxy uri host: , port:
Creating new connection to
cabal: openTCPConnection: host lookup failure for ""
 
simonpj at cam-05-unx:~/code/HEAD$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0.3 of the Cabal library 
simonpj at cam-05-unx:~/code/HEAD$
Can anyone help me work out what to do?  git works just fine, so the internet is connected all right.
Thanks
Simon
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140508/5bdc2bf5/attachment.html>


More information about the ghc-devs mailing list