2013-05-13 17:40:41 +00:00
|
|
|
As a haskell package, git-annex can be installed using cabal.
|
|
|
|
|
2013-07-30 16:10:49 +00:00
|
|
|
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/
|
2013-07-16 15:29:43 +00:00
|
|
|
|
|
|
|
## 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.
|
2012-04-13 15:15:27 +00:00
|
|
|
|
|
|
|
cabal update
|
2012-12-09 15:51:45 +00:00
|
|
|
PATH=$HOME/bin:$PATH
|
2013-07-16 15:29:43 +00:00
|
|
|
cabal install git-annex --bindir=$HOME/bin -f"-assistant -webapp -webdav -pairing -xmpp -dns"
|
2012-04-13 15:15:27 +00:00
|
|
|
|
2013-07-16 15:29:43 +00:00
|
|
|
## full build
|
2013-07-12 15:54:39 +00:00
|
|
|
|
2013-07-16 15:29:43 +00:00
|
|
|
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:
|
2013-07-12 15:54:39 +00:00
|
|
|
|
2013-07-16 15:29:43 +00:00
|
|
|
cabal update
|
|
|
|
PATH=$HOME/bin:$PATH
|
2013-07-12 15:54:39 +00:00
|
|
|
cabal install c2hs --bindir=$HOME/bin
|
|
|
|
cabal install git-annex --bindir=$HOME/bin
|
|
|
|
|
|
|
|
## building from git checkout
|
|
|
|
|
2012-04-13 15:15:27 +00:00
|
|
|
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
|
2012-12-09 15:51:45 +00:00
|
|
|
PATH=$HOME/bin:$PATH
|
2012-11-28 18:03:35 +00:00
|
|
|
cabal install c2hs --bindir=$HOME/bin
|
2012-04-13 15:37:49 +00:00
|
|
|
cabal install --only-dependencies
|
2012-04-13 15:15:27 +00:00
|
|
|
cabal configure
|
|
|
|
cabal build
|
|
|
|
cabal install --bindir=$HOME/bin
|