2

When I run "cabal update" on my Mac (Snow Leopard, Intel), I get:

% cabal update Downloading the latest package list from hackage.haskell.org cabal: Codec.Compression.Zlib: incompatible zlib version

Anyone else seeing this? Reinstalling the Haskell Platform hasn't helped. I'm unable to install or update Cabal packages at the moment, so I'd appreciate any help.

Thanks!

Don Stewart
  • 137,316
  • 36
  • 365
  • 468
Bill
  • 44,502
  • 24
  • 122
  • 213

3 Answers3

1

Incompatible zlib version

I think this means the C zlib library you have installed is out of date. Can you update it?

Don Stewart
  • 137,316
  • 36
  • 365
  • 468
  • I just installed the latest zlib and reinstalled the Haskell Platform. Same thing... – Bill May 24 '10 at 00:12
  • Can you confirm what version of zlib the scripts are trying to link haskell-zlib against? – Don Stewart May 24 '10 at 00:15
  • 1
    So, if I rename ~/.cabal to make it inaccessible, "cabal update" works without a hitch. – Bill May 24 '10 at 00:17
  • Removing ~/.cabal/lib/zlib-0.5.2.0 did the trick! cabal is now happily updating. Thanks for the help - hopefully this post will help if someone encounters the same issue. – Bill May 24 '10 at 00:20
  • I spoke too soon...I was asked to update cabal-install and after doing so I get the same error again. – Bill May 24 '10 at 00:24
  • Sounds like you had a binary that was built against one version of zlib, but downloaded and built cabal-install again against a different one. Look carefully at the C zlib installations on your system. – Don Stewart May 24 '10 at 01:10
0

What I've done is install zlib from MacPorts with the +universal flag and that works without problems. Does this help you?

Martijn
  • 6,713
  • 3
  • 31
  • 38
0

So I fixed this by removing MacPorts completely from my machine, re-installing zlib with it, and then clearing out my ~/.cabal.

After that I stopped getting these messages.

Thanks, all.

Bill
  • 44,502
  • 24
  • 122
  • 213