Install the Haskell Platform from http://hackage.haskell.org/platform/mac.html. The version provided by Macports is too old to work with current versions of git-annex. Then execute

sudo port install git-core ossp-uuid md5sha1sum coreutils pcre

sudo ln -s /opt/local/include/pcre.h  /usr/include/pcre.h # This is hack that allows pcre-light to find pcre

sudo cabal update
cabal install git-annex --bindir=$HOME/bin

See also:

You can also use Homebrew instead of MacPorts. Homebrew's haskell-platform is up-to-date, too:

brew install haskell-platform git ossp-uuid md5sha1sum coreutils pcre
ln -s /usr/local/include/pcre.h /usr/include/pcre.h

As of this writing, however, Homebrew's md5sha1sum has a broken mirror. I wound up getting that from MacPorts anyway.

Comment by http://www.schleptet.net/~cfm/ Tue Aug 30 14:31:36 2011
I've moved some outdated comments about installing on OSX to old comments.
Comment by http://joeyh.name/ Tue Jul 24 15:09:29 2012

To install git annex with homebrew simply do:

brew update
brew install haskell-platform git ossp-uuid md5sha1sum coreutils pcre
cabal install git-annex

Then link the binary to your PATH e.g. with

ln -s ~/.cabal/bin/git-annex* /usr/local/bin/
Comments on this page are closed.