There are four non non-official packages for git-annex in the Arch Linux User Repository. Any of these may be installed manually per AUR guidelines or using a wrapper such as yaourt
shown below.
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
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. You must either enable a 3rd party repo that has the dependencies or have a working Cabal installation. Unless you know what you are doing this is a bit problematic and some intervention may be required to get this option to work. The state of available dependency versions also varies so this may not work at all times.
$ yaourt -Sy git-annex
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
A Cabal sandbox build is also available
$ yaourt -Sy git-annex-cabal
Finally you may choose to forgo the Arch Linux package system entirely 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
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? .
Done [0]. Not much debug output, unfortunately...
[0] http://git-annex.branchable.com/bugs/Assistant_stalls_when_adding47creating_repo_on_ArchLinux/?updated
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).
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?