summaryrefslogtreecommitdiff
path: root/doc/install/Homebrew.mdwn
blob: bd9a840b0ff73326a93c8a498377bc16cefd0cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Homebrew](http://brew.sh/) has [a formula](https://github.com/Homebrew/homebrew/commits/master/Library/Formula/git-annex.rb) for git-annex.

Homebrew users can simply run `brew install git-annex` to install git-annex.

## buiding git-annex from sources

This is the old recipe for building git-annex from source, using
packages from homebrew. Useful if you want a newer version than the version
in homebrew.

<pre>
brew install haskell-platform git ossp-uuid md5sha1sum coreutils gnutls libidn gsasl pkg-config libxml2
brew link libxml2 --force
cabal update
mkdir $HOME/bin
PATH=$HOME/bin:$PATH
PATH=$HOME/.cabal/bin:$PATH
cabal install c2hs --bindir=$HOME/bin
cabal install gnuidn
cabal install git-annex --bindir=$HOME/bin
</pre>