Skip to content

Instantly share code, notes, and snippets.

@calmyournerves
Last active August 13, 2023 20:51
Show Gist options
  • Save calmyournerves/7144127 to your computer and use it in GitHub Desktop.
Save calmyournerves/7144127 to your computer and use it in GitHub Desktop.
Building git-annex on OS X 10.9 Mavericks
# make sure the following is installed:
# - Xcode Command Line Tools (xcode-select --install)
# - OpenSSL from homebrew (brew install openssl && brew link openssl --force)
# dependencies and preparations
brew update
brew install git ossp-uuid md5sha1sum coreutils pcre gnutls libidn gsasl pkg-config libxml2
brew link libxml2 --force
brew tap darinmorrison/haskell
brew install darinmorrison/haskell/cabal-install
cabal update
PATH=~/.cabal/bin:$PATH
cabal install happy
cabal install alex
cabal install c2hs
cabal install gnuidn
# for shell use
cabal install git-annex
ln -s ~/.cabal/bin/git-annex* /usr/local/bin/
# to create git-annex.app
git clone https://github.com/joeyh/git-annex.git
cd git-annex
cabal build
make osxapp
cp -R tmp/build-dmg/git-annex.app /Applications/
@davclark
Copy link

davclark commented Nov 2, 2013

Thanks for providing this! I like your symlink approach for the binaries.

@j0xaf
Copy link

j0xaf commented Nov 14, 2013

Thank you, that was a great help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment