mxcl/homebrew — Issue #9305: cmake 2.8.6 install fails: MD5 mismatch BUT: d/l .tar.gz archive is actually a .tar
Author: gertalot
Created: 2011-12-28 03:55:58+00:00
State: open

first of all:

$ brew doctor
Your system is raring to brew.

**Summary:** I'm trying to install cmake version 2.8.6, using the cmake formula with checkout `fa57b42` (https://gist.github.com/1526114), which ultimately fails because the downloaded file, while having extension `.tar.gz`, is actually a tar file and not gzipped.

**Steps to reproduce**:

Just running `brew install cmake` for version 2.8.6 fails with an MD5 mismatch error: https://gist.github.com/1526119

I was fairly confident the downloaded cmake archive was valid, so I changed the formula's md5 to match the file's, and installation fails with a different error: https://gist.github.com/1526128

I noticed the .tar.gz isn't actually gzipped, just tarred:

$ file cmake-2.8.6.tar.gz
cmake-2.8.6.tar.gz: POSIX tar archive

So, I made sure the file was really a tarred and gzipped archive:

$ mv cmake-2.8.6.tar.gz cmake-2.8.6.tar
$ gzip cmake-2.8.6.tar

Changed the md5 to '1aa101f21050cc70b307f8cb50e9ff0c' to match the gzipped tar file and ran `brew install cmake` again, this time successfully.