Downloading Darcs

Here are directions for compiling darcs from source, followed by links for binary builds on many platforms.

Compiling from source

Are you sure you want to compile Darcs from source? It might be simpler to install one of the Darcs binaries listed below.

Darcs is written in Haskell, not in C, C++ or Java, and Haskell compilers are not yet as widely available as C or C++ ones. In order to compile Darcs you will probably first need to install a Haskell compiler. Binary packages of GHC are available at the GHC site, as are instructions on how to find other binaries. If you can get a binary distribution of GHC then it is fairly painless to compile darcs, but if you cannot then it can be difficult to compile GHC.

To compile darcs from source:

Download darcs from the official homepage. In order to compile darcs, you will need ghc 6.4, or later, and a recent version of libcurl.

If you already have darcs-2, you can get a copy of the latest code using darcs itself:

If you want a complete copy of the darcs repository. you should leave out the --lazy flag.

For the remaining details, see Building Darcs in the official manual.

Building a Windows executable using Cygwin tools

CompilingOnCygwin

Building a Cygwin executable

To compile darcs as a Cygwin program you need a version of GHC that can produce Cygwin executables. GHC used to support this at one point, but it doesn't work anymore. The person who gets this working will be considered a hero.

Microsoft Windows

Recent stable client versions, pre-packaged with putty ssh, are available

See WindowsConfiguration for installation instructions.

Mac OS X

MacOS X now has four binary architectures; ppc, ppc64, x86, x86_64. For the purposes of haskell/darcs building, I think this mostly amounts the two architectures of the ppc/x86 split. The Rosetta emulation layer that ships with 10.4 x86 allows x86 users to run many (but not all) ppc binaries, however ppc users cannot run x86 binaries.

Intel OS X

The current version of darcs -- darcs-2:

Older versions of darcs:

PowerPC OS X

Older versions of darcs:

MacPorts and Fink

Both MacPorts and Fink have package based installers of darcs.

Linux

Binary for Linux

Arch Linux

Darcs is in the extra package repository that is enabled by default. Just run

and you're done.

Crux Linux

Afterward, type the following commands:

Debian

Darcs is available in all current Debian releases in the darcs package. For example, to install using apt-get:

# apt-get install darcs

Fedora Core (Linux)

Darcs is included in Fedora Extras. See:

for information about using Extras.

In Fedora Core 4 yum is already pre-configured to use Extras. For Fedora Core 3 add the yum configuration from the above page.

Then do

If you want to do development you will also want to install ghc in the same way.

For Fedora Core 2 or lower, see

Frugalware Linux

To install binary package:

* pacman-g2 -Sy darcs

To build it from source:

* repoman upd && repoman merge darcs

Gentoo Linux

If the version this gives you is not recent enough you can try the "unstable" version (for non-i386 platforms replace ~x86 with correct keyword, for amd-64 use ~amd64):

You can see which "stable" and "unstable" versions are available for your architecture here.

You'll have to use darcs 1.0.3_rc1 or later if you are using GHC 6.4. The oldest version of darcs currently(29-4-2006) in portage is 1.0.4, so you should not have to worry about this.

Note that if this is the first time you've built something that is written in Haskell, Portage will bring in ghc-bin. That's perfectly sufficient to build darcs, but you may also want to emerge ghc (which needs ghc-bin to bootstrap) and then you can remove ghc-bin.

If configuring darcs fails, and config.log shows something like "Could not find module `Prelude'" and you are using the binary ghc package, try re-emerge'ing ghc-bin (just type emerge ghc-bin)

GoboLinux

To compile from source:

To get a binary package.

Mandriva Linux

Darcs is now officially included in all Mandriva distribution up to 10.2. You can find it in contrib media:

http://rpms.mandrivaclub.com/search.php?query=darcs

To install darcs, ensure your urpmi is setup with contrib media, then type (as root):

urpmi darcs

For all issue related to this package, please contact the official maintainer: nanardon@mandriva.org.

The package for LE2005 (10.2) will work on 10.1 if you also install the libreadline5 package.

To have benefits of bash completion, simply install bash-completion package:

urpmi bash-completion

SUSE Linux

Client ( for SLES9, SLES10 , 9.3, 10, 10.1, Factory)

Web Front-end (only for 9.1)

Build it from source

Alternate links thanks to KetilMalde

Notes:

-- NimrodAbing

Ubuntu Linux

Darcs is in the universe section of Ubuntu, thus universe should be in your apt sources. Take a look at http://www.ubuntu.com/community/ubuntustory/components for adding universe (summary: edit /etc/apt/sources.list). Now simply add it through Synaptics Package Manager or

Iain Lane has also produced some more up-to-date packages, available on his Launchpad Personal Package Archive at https://launchpad.net/~laney/+archive

BSD

FreeBSD

Darcs is now known to build on FreeBSD 4.x, 5.x and 6.x, using the FreeBSD ports collection:

To build from source:

or, to install the server as well:

If you install the server, the CGI executable is installed as /usr/local/libexec/darcs/cgi-bin/darcs, and its configuration file is /usr/local/etc/darcs/darcs/cgi.conf.

Since darcs depends on Haskell, be prepared for the above to also download and install any Haskell related ports that you don't already have, such as ghc.

To fetch and install a binary package from an official FreeBSD server:

The statically-linked Linux binary above also appears to work if you've got COMPAT_LINUX in your kernel.

If you want to compile darcs yourself on FreeBSD, be sure to use gmake instead of make.

LionKimbro: On FreeBSD 5.4, I had great difficulty installing; I ended up in a perpetually running make..! Key insights from my install: (1) pkg_add -r ghc first, rather than any other method of adding ghc. (2) Download darcs source from http://darcs.net/ . (3) The FreeBSD 5.4 version uses ghc 6.4.0, not 6.4.1, so you need to edit line 43 of Repository.lhs, changing it to: import qualified DarcsRepo hiding ( seekRepo, youNeedToBeInRepo ) (4) type gmake. The program should now compile.

WesSheldahl: On FreeBSD 6.1, it installed smoothly, including installing ghc through ports as a dependency.

JanLudewig: On FreeBSD 8x and probably 7x, it won't compile without this patch: http://www.nabble.com/ports-117535-3A--PATCH--devel-darcs-3A-port-is-broken-for-RELENG_7-to13428315.html

NetBSD

No native binaries are available yet. On x86, the statically-linked Linux binary above works if you've got COMPAT_LINUX in your kernel.

It's possible to use pkgsrc to install binary or build Darcs from sources. Darcs is in directory pkgsrc/devel/darcs.

OpenBSD

Latest stable darcs is in the OpenBSD ports collection, running natively. Alternatively, binary builds for x86 and amd64 can be downloaded from an OpenBSD mirror, and installed with pkg_add.

DragonFlyBSD

With the new release (1.4), the recommended packaging system is pkgsrc. To build and install darcs, all you have to do is

However, the ghc package is currently broken on DragonFly; until it is fixed (not hard, but there's only one person that cares and I don't have much time), you'll have to use a linux binary.

Solaris

AIX

For AIX 5.x, a binary build is available at: http://openafp.org/darcs-1.0.1-aix5.tar.gz

Unfortunately, openafp.org appears to be gone...

Related Pages


CategoryBinaries CategoryBinaries

DarcsWiki: CategoryBinaries (last edited 2008-08-28 08:05:19 by EricKow)