1

I have a problem in installing darcs

$ cabal install darcs-2.8.4
/tmp/darcs-2.8.4-26031/darcs-2.8.4/Setup.lhs:106:3: Warning:
    In the use of `runTests'
    (imported from Distribution.Simple, but defined in Distribution.SimpleLinking /tmp/darcs-2.8.4-26031/darcs-2.8.4/dist/setup/setup ...
Configuring dsetup: Unable to link against the iconv library.
cabal: Error: some packages failed to install:
darcs-2.8.4 failed during the configure step. The exception was:
ExitFailure 1
AmirHossein
  • 1,310
  • 1
  • 12
  • 19

1 Answers1

2

darcs seems to need development files for libcurl. So, install libcurl4-gnutls-dev in Ubuntu:

sudo apt-get install libcurl4-gnutls-dev

Once you have installed that, install darcs using the usual cabal install method.

Sibi
  • 47,472
  • 16
  • 95
  • 163
  • It's a bug in the Darcs configuration script that it incorrectly reports this as a missing iconv. This is fixed in HEAD, and there'll probably be a 2.8.5 soon with a fix too. – Ganesh Sittampalam Jul 30 '14 at 05:31