b6d46c212e
* unannex, uninit: Avoid committing after every file is unannexed, for massive speedup. * --notify-finish switch will cause desktop notifications after each file upload/download/drop completes (using the dbus Desktop Notifications Specification) * --notify-start switch will show desktop notifications when each file upload/download starts. * webapp: Automatically install Nautilus integration scripts to get and drop files. * tahoe: Pass -d parameter before subcommand; putting it after the subcommand no longer works with tahoe-lafs version 1.10. (Thanks, Alberto Berti) * forget --drop-dead: Avoid removing the dead remote from the trust.log, so that if git remotes for it still exist anywhere, git annex info will still know it's dead and not show it. * git-annex-shell: Make configlist automatically initialize a remote git repository, as long as a git-annex branch has been pushed to it, to simplify setup of remote git repositories, including via gitolite. * add --include-dotfiles: New option, perhaps useful for backups. * Version 5.20140227 broke creation of glacier repositories, not including the datacenter and vault in their configuration. This bug is fixed, but glacier repositories set up with the broken version of git-annex need to have the datacenter and vault set in order to be usable. This can be done using git annex enableremote to add the missing settings. For details, see http://git-annex.branchable.com/bugs/problems_with_glacier/ * Added required content configuration. * assistant: Improve ssh authorized keys line generated in local pairing or for a remote ssh server to set environment variables in an alternative way that works with the non-POSIX fish shell, as well as POSIX shells. # imported from the archive
58 lines
1.7 KiB
Markdown
58 lines
1.7 KiB
Markdown
As a haskell package, git-annex can be installed using cabal.
|
|
|
|
This involves building a lot of haskell packages from source, and so it has
|
|
a lot of moving parts, and it's not uncommon for it to be broken from time
|
|
to time.
|
|
|
|
If you are not comfortable tracking down and dealing with library build
|
|
problems, installing git-annex with cabal is probably not the right choice
|
|
for you!
|
|
|
|
## prerequisites
|
|
|
|
Start by installing the [Haskell Platform][]. In Debian, this is as
|
|
simple as:
|
|
|
|
sudo apt-get install haskell-platform
|
|
|
|
[Haskell Platform]: http://hackage.haskell.org/platform/
|
|
|
|
## minimal build
|
|
|
|
This builds git-annex without some features that require C libraries, that
|
|
can be harder to get installed. This is plenty to get started using it,
|
|
although it does not include the assistant or webapp.
|
|
|
|
cabal update
|
|
PATH=$HOME/bin:$PATH
|
|
cabal install git-annex --bindir=$HOME/bin -f"-assistant -webapp -webdav -pairing -xmpp -dns"
|
|
|
|
## full build
|
|
|
|
To build with all features enabled, including the assistant and webapp,
|
|
you will need to install several C libraries and their headers,
|
|
including libgnutls, libgsasl, libxml2, and zlib. Then run:
|
|
|
|
cabal update
|
|
PATH=$HOME/bin:$PATH
|
|
cabal install c2hs --bindir=$HOME/bin
|
|
cabal install git-annex --bindir=$HOME/bin
|
|
|
|
## building from git checkout
|
|
|
|
But maybe you want something newer (or older). Then [[download]] the version
|
|
you want, and use cabal as follows inside its source tree:
|
|
|
|
cabal update
|
|
PATH=$HOME/bin:$PATH
|
|
cabal install c2hs --bindir=$HOME/bin
|
|
cabal install --only-dependencies
|
|
cabal configure
|
|
cabal build
|
|
cabal install --bindir=$HOME/bin
|
|
|
|
## EKG
|
|
|
|
When building with cabal, you can optionally enable the
|
|
[[EKG monitoring interface|ekg]]. This is great for debugging resource
|
|
usage problems.
|