git-annex.app

For easy installation, Jimmy Tang builds a standalone git-annex.app of the git-annex assistant.

using Brew

sudo brew update
sudo brew install haskell-platform git ossp-uuid md5sha1sum coreutils pcre
cabal update
cabal install git-annex --bindir=$HOME/bin

using MacPorts

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

PATH setup

Do not forget to add to your PATH variable your ~/bin folder. In your .bashrc, for example:

PATH=~/bin:/usr/bin/local:$PATH

See also:

I've moved some outdated comments about installing on OSX to old comments. And also moved away some comments that helped build the instructions above.

Comment by http://joeyh.name/ Tue Jul 24 15:09:29 2012

I tried installing with cabal and homebrew on Mountain Lion. After cabal install git-annex I get:

Linking dist/build/git-annex/git-annex ...
Installing executable(s) in /Users/dfc/.cabal/bin
setup: standalone/macos/git-annex.app/Contents/Info.plist: does not exist
cabal: Error: some packages failed to install:
git-annex-3.20121001 failed during the final install step. The exception was:
ExitFailure 1

There is no directory named macos inside of standalone:

jumbo:git-annex-3.20121001 dfc$ ls -l standalone/
total 112
-rw-r--r--+ 1 dfc  staff  55614 Oct  6 10:40 licences.gz
drwxr-xr-x+ 6 dfc  staff    204 Oct  6 10:40 linux
drwxr-xr-x+ 3 dfc  staff    102 Oct  6 10:40 osx
@Douglas, I've fixed that in git. FWIW, the program is installed before that point. Actually, I am leaning toward not having cabal install that plist file at all.
Comment by http://joeyh.name/ Sat Oct 6 21:05:45 2012
Comments on this page are closed.