If you cannot get a OSX build of git-annex suitable for your computer, from eg HomeBrew or the regular OSX prebuilt app, you can try building git-annex from source on OSX, using haskell's cabal package manager.
For general instructions on building git-annex from source see fromsource
Bad news, it looks like I'm not able to install git-annex to my machine: When I run
I get the following error:
What does ExitFailure 11 mean?
cabal update && cabal upgrade git-annex
i had macports installed. then i installed brew, instaled haskell via brew. i needed to set PATH=$HOME/bin:/usr/local/bin:$PATH
I'm having the same issue as @Pere, with a newer version of DAV
cabal: Error: some packages failed to install: DAV-0.3.1 failed during the building phase. The exception was: ExitFailure 11 git-annex-4.20130323 depends on shakespeare-css-1.0.3 which failed to install. persistent-1.1.5.1 failed during the building phase. The exception was: ExitFailure 11 persistent-template-1.1.3.1 depends on persistent-1.1.5.1 which failed to install. shakespeare-css-1.0.3 failed during the building phase. The exception was: ExitFailure 11 yesod-1.1.9.2 depends on shakespeare-css-1.0.3 which failed to install. yesod-auth-1.1.5.3 depends on shakespeare-css-1.0.3 which failed to install. yesod-core-1.1.8.2 depends on shakespeare-css-1.0.3 which failed to install. yesod-default-1.1.3.2 depends on shakespeare-css-1.0.3 which failed to install. yesod-form-1.2.1.3 depends on shakespeare-css-1.0.3 which failed to install. yesod-json-1.1.2.2 depends on shakespeare-css-1.0.3 which failed to install. yesod-persistent-1.1.0.1 depends on shakespeare-css-1.0.3 which failed to install. yesod-static-1.1.2.2 depends on shakespeare-css-1.0.3 which failed to install.
Any ideas?
I was able to build snow leopard completely for the first time over last night (it took a very long time to build all the tools and dependancies). Woohoo!
The way I was able to fully build on a 32-bit 10.6 machine was this
brew uninstall ghc and haskell-platform
brew update
brew install git ossp-uuid md5sha1sum coreutils libgsasl gnutls libidn libgsasl pkg-config libxml2
brew upgrade git ossp-uuid md5sha1sum coreutils libgsasl gnutls libidn libgsasl pkg-config libxml2
(Some of these were already installed/up to date.brew link libxml2
brew install haskell-platform
(This takes a long, long time).cabal update
(assuming you have added~/.cabal/bin
to your pathcabal install cablal-install
cabal install c2hs
cabal install git-annex
It also appears to be running fairly smoothly than it had in the past on a 32-bit SL system. Thats also neat.
The problem is that it seems to not really work as git annex though, probably due to the error relating you get when you start up the webapp: Running
git annex webapp
The browser starts up, and I get 3 of these errors:Watcher crashed: Need at least OSX 10.7.0 for file-level FSEvents
Pairing with a local computer appears to work to systems running 10.7, but when you complete the process, they never show up in the repository list.
Also on a side note, when running
git annex webapp
it triggers the opening of an html file in whatever the default html file handler is. I edit a lot of html, so for me that is usually a text editor. I had to change the file handler to open html files with my web browser for thegit annex webapp
to actually work. Is there a way to change that so thatgit annex webapp
uses the default web browser for the system rather than the default html file handler?@Bret, the assistant relies on FSEvents pretty heavily. It seems to me your best bet is to upgrade OSX to a version that supports FSEvents.
You can certainly use the rest of git-annex on Snow Leopard without FSEvents.
Rather than specifying --bindir on the command line for cabal, I edited my ~/.cabal/config to add this line:
This installs the binaries to ~/.cabal/bin but symlinks them into /usr/local/bin alongside the links that homebrew installs. Additionally, I symlinked /usr/local/bin/git-annex-shell to /usr/local/bin/git-annex which made things work great from remote hosts via ssh.
I get this error when I try to build git-annex using "cabal install git-annex"
@Kristian, a new version of the DNS library has caused this. A workaround is to pass
-f-DNS
to the cabal command.I am in the process of adding support for the new DNS library version in git now.
By the way, please file a bug if you have a big ugly looking build failure like that, so as to not clutter up this page.
The FSevents framework itself has been around since leopard.
This fsevents wrapper project supports snow leopard and even leopard, maybe it will provide some clues on how it was done.
I'm guessing it would be worth it, snow leopard is still the most popular OSX as of April. From my own experience, snow leopard is a huge life extender for 2+ year old hardware. Lion just makes them sluggishly painful to use.
Maybe someone could volunteer an SL machine for remote development? Sorry, mine are tied down
Hello,
I just compiled git-annex using cabal on OS X, and I see there is no dbus support:
Is this problematic? I see I can install dbus using homebrew. If I do so, will I have dbus support (after recompiling git-annex)?
I'm trying to build git-annex with dbus support, and even though I installed dbus (through homebrew), at the end of compilation I get the warning about "building without dbus". Is there something special I need to do for git-annex to see I have installed dbus?
(Also, it tells me at the beginning that I don't have gcrypt, but libgcrypt is installed.)
You probably need to install libdbus dev stuff, and then the haskell dbus library. But it's certainly going to need code changes to make git-annex use dbus in any way on OSX, assuming there are even useful dbus events generated for network connections and drives being mounted on OSX.
It was saying "gcrypt" when it meant "git-remote-gcrypt".
Following the Mac OS X brew instructions from the top of the board, I got the following error:
[5 of 5] Compiling Yesod ( Yesod.hs, dist/build/Yesod.o ) In-place registering yesod-1.2.5... Installing library in /Users/srinathv/.cabal/lib/yesod-1.2.5/ghc-7.6.3 Registering yesod-1.2.5... Installed yesod-1.2.5 cabal: Error: some packages failed to install: git-annex-5.20140210 depends on libxml-sax-0.7.4 which failed to install. libxml-sax-0.7.4 failed during the configure step. The exception was: ExitFailure 1 network-protocol-xmpp-0.4.5 depends on libxml-sax-0.7.4 which failed to install.
Then I perused the comments and did: $brew link libmxl2 --force $cabal install git-annex --bindir=$HOME/bin
with success.