summaryrefslogtreecommitdiff
path: root/doc/install
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-09-16 15:12:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-09-16 15:12:09 -0400
commit1408e9aab741355a08ea49beba5a67f4091fd6c9 (patch)
treec06a30af444fc1f37197d27a4cf1357039658c05 /doc/install
parentc9471c86ba145010600e294f4f2cf5ed575edbae (diff)
improve
Diffstat (limited to 'doc/install')
-rw-r--r--doc/install/fromsource.mdwn18
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/install/fromsource.mdwn b/doc/install/fromsource.mdwn
index baa4e1b06..98a517b14 100644
--- a/doc/install/fromsource.mdwn
+++ b/doc/install/fromsource.mdwn
@@ -31,7 +31,8 @@ First, install everything git-annex needs to build:
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
@@ -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
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
-source, and so it has a lot of moving parts, and it's not uncommon for it
-to be broken from time to time.
+Inside the source tree, run:
cabal configure -f"-assistant -webapp -webdav -pairing -xmpp -dns"
+ cabal install --only-dependencies
cabal build
PATH=$HOME/bin:$PATH
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
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. How to do that for
-your OS is beyond the scope of this page. Once the C libraries are
-installed:
+your OS is beyond the scope of this page.
+
+Once the C libraries are installed, run inside the source tree:
cabal configure
+ cabal install --only-dependencies
cabal build
PATH=$HOME/bin:$PATH
cabal install --bindir=$HOME/bin