tags:

views:

55

answers:

3

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!

+1  A: 

Incompatible zlib version

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

Don Stewart
I just installed the latest zlib and reinstalled the Haskell Platform. Same thing...
Bill
Can you confirm what version of zlib the scripts are trying to link haskell-zlib against?
Don Stewart
So, if I rename ~/.cabal to make it inaccessible, "cabal update" works without a hitch.
Bill
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
I spoke too soon...I was asked to update cabal-install and after doing so I get the same error again.
Bill
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
A: 

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

Martijn
A: 

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