improve
This commit is contained in:
parent
5b8515c6d5
commit
552169bac5
1 changed files with 12 additions and 6 deletions
|
@ -31,7 +31,8 @@ First, install everything git-annex needs to build:
|
||||||
|
|
||||||
sudo apt-get build-dep git-annex
|
sudo apt-get build-dep git-annex
|
||||||
|
|
||||||
Now you can build git-annex using either `make` or `cabal build`.
|
Now you can build git-annex by running either `make` or `cabal build`
|
||||||
|
inside the source tree.
|
||||||
|
|
||||||
## minimal build with cabal
|
## minimal build with cabal
|
||||||
|
|
||||||
|
@ -39,24 +40,29 @@ This can be done anywhere, and builds git-annex without some features that
|
||||||
require C libraries, that can be harder to get installed. This is plenty to
|
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.
|
get started using it, although it does not include the assistant or webapp.
|
||||||
|
|
||||||
Be warned that this involves building a lot of Haskell libraries from
|
Inside the source tree, run:
|
||||||
source, and so it has a lot of moving parts, and it's not uncommon for it
|
|
||||||
to be broken from time to time.
|
|
||||||
|
|
||||||
cabal configure -f"-assistant -webapp -webdav -pairing -xmpp -dns"
|
cabal configure -f"-assistant -webapp -webdav -pairing -xmpp -dns"
|
||||||
|
cabal install --only-dependencies
|
||||||
cabal build
|
cabal build
|
||||||
PATH=$HOME/bin:$PATH
|
PATH=$HOME/bin:$PATH
|
||||||
cabal install --bindir=$HOME/bin
|
cabal install --bindir=$HOME/bin
|
||||||
|
|
||||||
|
Be warned that this involves building a lot of Haskell libraries 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.
|
||||||
|
|
||||||
## full build with cabal
|
## full build with cabal
|
||||||
|
|
||||||
To build with all features enabled, including the assistant and webapp,
|
To build with all features enabled, including the assistant and webapp,
|
||||||
you will need to install several C libraries and their headers,
|
you will need to install several C libraries and their headers,
|
||||||
including libgnutls, libgsasl, libxml2, and zlib. How to do that for
|
including libgnutls, libgsasl, libxml2, and zlib. How to do that for
|
||||||
your OS is beyond the scope of this page. Once the C libraries are
|
your OS is beyond the scope of this page.
|
||||||
installed:
|
|
||||||
|
Once the C libraries are installed, run inside the source tree:
|
||||||
|
|
||||||
cabal configure
|
cabal configure
|
||||||
|
cabal install --only-dependencies
|
||||||
cabal build
|
cabal build
|
||||||
PATH=$HOME/bin:$PATH
|
PATH=$HOME/bin:$PATH
|
||||||
cabal install --bindir=$HOME/bin
|
cabal install --bindir=$HOME/bin
|
||||||
|
|
Loading…
Reference in a new issue