git-annex.app
For easy installation, Jimmy Tang builds a standalone git-annex.app of the git-annex assistant.
- beta release of git-annex.app
- daily build of git-annex.app (build logs)
- past builds -- directories are named from the commitid's
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.
I tried installing with cabal and homebrew on Mountain Lion. After cabal install git-annex I get:
There is no directory named macos inside of standalone:
[ 98 of 248] Compiling Utility.DiskFree ( Utility/DiskFree.hs, dist/build/git-annex/git-annex-tmp/Utility/DiskFree.o ) [ 99 of 248] Compiling Utility.Url ( Utility/Url.hs, dist/build/git-annex/git-annex-tmp/Utility/Url.o )
Utility/Url.hs:111:88: Couldn't match expected type
Maybe URI' with actual type
URI' In the second argument offromMaybe', namely
(newURIrelativeTo
u)' In the expression: fromMaybe newURI (newURIrelativeTo
u) In an equation fornewURI_abs': newURI_abs = fromMaybe newURI (newURI
relativeTo` u) cabal: Error: some packages failed to install: git-annex-3.20121009 failed during the building phase. The exception was: ExitFailure 1