
Hi, I've followed the instruction from the upcoming book Real World Haskell to install cabal. Now, when I enter "cabal update", it answers this: Downloading package list from server 'http://hackage.haskell.org/packages/archive' cabal: getHostByName: does not exist (no such host entry) What's the problem ? Thanks a lot, Thu

On Mon, Sep 01, 2008 at 12:01:49PM +0200, minh thu wrote:
Hi,
I've followed the instruction from the upcoming book Real World Haskell to install cabal.
Now, when I enter "cabal update", it answers this:
Downloading package list from server 'http://hackage.haskell.org/packages/archive' cabal: getHostByName: does not exist (no such host entry)
Not sure which libraries you (cabal) is using here. On some debian System there has been a dns issue. You should check wether the tool is using the curl bindings http library and look for this problem in forums of your distro. Maybe try curl <url> That gives That gives: ... The document has moved to http://hackage.haskell.org/packages/archive/ (note the last slash) for me. Maybe also try adding the ip of hackage.haskell.org to /etc/hosts for a temporary workaround ? You should also tell us which operating system you are using. Sincerly Marc Weber

2008/9/1 Marc Weber
On Mon, Sep 01, 2008 at 12:01:49PM +0200, minh thu wrote:
Hi,
I've followed the instruction from the upcoming book Real World Haskell to install cabal.
Now, when I enter "cabal update", it answers this:
Downloading package list from server 'http://hackage.haskell.org/packages/archive' cabal: getHostByName: does not exist (no such host entry)
Not sure which libraries you (cabal) is using here. On some debian System there has been a dns issue. You should check wether the tool is using the curl bindings http library and look for this problem in forums of your distro. Maybe try curl <url> That gives That gives: ... The document has moved to http://hackage.haskell.org/packages/archive/ (note the last slash) for me.
Maybe also try adding the ip of hackage.haskell.org to /etc/hosts for a temporary workaround ?
You should also tell us which operating system you are using.
Hi, $ curl hackage.haskell.org gives me the 301 Moved Permanently too. adding 69.30.63.197 hackage.haskell.org to /etc/hosts doesn't change anything. Some info : $ cabal --version cabal-install version 0.5.2 using version 1.4.0.2 of the Cabal library I'm using Kubuntu Gutsy. Thanks, Thu

Hi,
Now, when I enter "cabal update", it answers this:
Downloading package list from server 'http://hackage.haskell.org/packages/archive' cabal: getHostByName: does not exist (no such host entry)
I received the same error message. After a month I realized that my proxy settings were wrong. (I don't need proxy but the 'http_proxy' variable was present in the shell environment.) Peter

2008/9/1 PéterDiviánszky
Hi,
Now, when I enter "cabal update", it answers this:
Downloading package list from server 'http://hackage.haskell.org/packages/archive' cabal: getHostByName: does not exist (no such host entry)
I received the same error message. After a month I realized that my proxy settings were wrong. (I don't need proxy but the 'http_proxy' variable was present in the shell environment.)
Thank you, that was that (and I've also removed https and uppercase versions). Thu
participants (3)
-
Marc Weber
-
minh thu
-
Péter Diviánszky