Failed to install Darcs - Ubuntu 14.04 x64 - darcs 2.8.4 - cabal 1.20.0.2

232 Views Asked by At

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
1

There are 1 best solutions below

1
Sibi On BEST ANSWER

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.