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.2) are as follows:

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

The Old Way

Darcs can still be built with GNU autotools; this approach is deprecated and will be removed after the 2.3 release. Run
autoconf
./configure
make
make install

The build dependencies are identical to the previous approach, except that instead of the Cabal package, you will need

darcs-unstable 2009-05-17