There are three non non-official packages for git-annex in the Archlinux User Repository. Any of these may be installed manually per AUR guidelines or using a wrapper such as yaourt shown below.

  1. The simplest method is to use the git-annex-bin package based on the prebuilt Linux tarballs. This package includes many of the binary shims from the pre-built package. Although common Linux system utilities have been stripped in favor of normal dependencies, the pre-configured Haskell libraries included out of the box make this an easy install. The disadvantage is the resulting installation is a bit on the heavy side at nearly 100M.

    $ yaourt -Sy git-annex-bin

  2. A more traditional source package is available at git-annex. This depends on a large number of Haskell packages available from a third party repository or through Cabal. This has been historically a bit problematic and the package frequently sits flagged out of date. The state of dependencies also varies, so some intervention may be required to get this option to work.

    $ yaourt -Sy git-annex

  3. A development package is available at git-annex-git that functions similarly to the source package but builds directly from the HEAD of the git repository rather that the last official release.

    $ yaourt -Sy git-annex-git

Finally you may choose to forgo the Archlinux package system and install git-annex directly through cabal.

$ pacman -S git rsync curl wget gnupg openssh cabal-install
$ cabal update
$ cabal install git-annex --bindir=$HOME/bin
For Arch Linux there should be the AUR package git-annex-bin mentioned, because it's easier to install (no haskell dependencies to be installed) and is based on the prebuild linux binary tarball.

I am experiencing a weird issue with any install I've had on this one (and only) ArchLinux machine: all of aur/git-annex 4.20130516-1, aur/git-annex-bin-4.20130909-1, aur/git-annex-standalone-4.20130909-1 and a Cabal install just stall when trying to create the initial Git annex repo in the webapp.

When started, it offers me to create the annex in ~/annex/ or ~/Desktop/annex/, where ~ gets turned into /home/USER when I press “Make repository”, but nothing else happens. This is regardless of if that repo exists when I try to create it or start the webapp.

If I start the webapp from an existing annex (now in ~/annex), it seems to work a bit better, but any other remote (SSH) server that I try to add fails. I just get a fleeting Bootstrap message box when I click “Check this server”, and nothing in the logs of eithr git annex webapp or the ssh logs of the server.

Any idea? Where should I look for more debug information? .

Comment by http://olivier.mehani.name/ Fri Sep 13 05:09:49 2013
Please post a bug report and start the webapp with the --debug option.
Comment by http://joeyh.name/ Fri Sep 13 15:35:59 2013

Done [0]. Not much debug output, unfortunately...

[0] http://git-annex.branchable.com/bugs/Assistant_stalls_when_adding__47__creating_repo_on_ArchLinux/?updated

Comment by http://olivier.mehani.name/ Mon Sep 16 01:23:58 2013

The AUR package you reference is woefully out of date. I have updated the standalone variant so it might be worth using that until the maintainer catches up.

yaourt -Sy git-annex-standalone
Comment by http://alerque.com/ Sat Dec 28 22:04:24 2013

Configuring gnuidn-0.2.1... cabal: The program c2hs is required but it could not be found. Failed to install gnuidn-0.2.1 Configuring language-javascript-0.5.9... cabal: The program happy version >=1.18.5 is required but it could not be found. Failed to install language-javascript-0.5.9 cabal: Error: some packages failed to install: git-annex-5.20140320 depends on language-javascript-0.5.9 which failed to install. gnuidn-0.2.1 failed during the configure step. The exception was: ExitFailure 1 hjsmin-0.1.4.6 depends on language-javascript-0.5.9 which failed to install. language-javascript-0.5.9 failed during the configure step. The exception was: ExitFailure 1 network-protocol-xmpp-0.4.6 depends on gnuidn-0.2.1 which failed to install. yesod-static-1.2.2.4 depends on language-javascript-0.5.9 which failed to install. [r-c@rc-laptop ~]$ cabal install language-javascript Resolving dependencies... Configuring language-javascript-0.5.9... cabal: The program happy version >=1.18.5 is required but it could not be found. Failed to install language-javascript-0.5.9 cabal: Error: some packages failed to install: language-javascript-0.5.9 failed during the configure step. The exception was: ExitFailure 1

Can you help how to solve?

@rado The Haskel dependencies can be a nightmare to sort out for the un-initiated. You can side-step the whole issue by uninstalling the pre-built version that that has all the dependencies built in out of the box.

Just grab the git-annex-bin package from the AUR and be done with it. (The -bin and -standalone packages recently merged so there is just -bin now).

Comment by http://alerque.com/ Fri Mar 28 22:50:37 2014

cabal install gsasl cabal install happy cabal install language-javascript cabal install alex cabal install c2hs

after installing writing in terminal: git-annex, git-annex webapp does nothing... can you help how to start git-annex?

Comments on this page are closed.