next up previous contents
Next: Theory of patches Up: Darcs User Manual Previous: Darcs commands   Contents

Subsections

Building darcs

The Easy Way

If your distribution provides a pre-built binary package of a recent Darcs release, you are strongly encouraged to use that rather than building Darcs yourself.

If you have (or can install) the cabal-install package, this is the next best option, as this will resolve build dependencies automatically. To download, compile and install Darcs and its dependencies via cabal-install, simply run

cabal update
cabal install darcs

The Hard Way

If you cannot install cabal-install, you need to run
ghc --make Setup
./Setup configure
./Setup build
./Setup install

This will require the following build dependencies:

Additional build dependencies are declared in the darcs.cabal file, and ./Setup configure will tell you if any required build dependencies aren't found. The build dependencies at time of writing (Darcs 2.3) are as follows:

Missing optional build dependencies are only listed if ./Setup configure is passed the -verbose argument. At time of writing they are:


next up previous contents
Next: Theory of patches Up: Darcs User Manual Previous: Darcs commands   Contents