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 libgsasl gnutls libidn libgsasl pkg-config 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=$HOME/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 1I'm getting an error from gpg when I try to set up a repository on a remote server with encrypted rsync. Looks like libncurses in /usr/lib is 32 bit:
I tried running the git-annex.app on my Core Duo Macbook pro, and it does not run at all. I get an error on my system.log
Nov 3 12:13:26 Bret-Mac [0x0-0x15015].com.branchable.git-annex[155]: /Applications/git-annex.app/Contents/MacOS/runshell: line 52: /Applications/git-annex.app/Contents/MacOS/bin/git-annex: Bad CPU type in executable Nov 3 12:13:26 Bret-Mac com.apple.launchd.peruser.501[92] ([0x0-0x15015].com.branchable.git-annex[155]): Exited with exit code: 1
It works on my 64 bit machine, and this has become quite the problem for a while now, where people with newer macs dont compile back for a 32bit machine.
Is there any hope for a pre-compiled binary that works on a 32 bit machine?