[Haskell-beginners] cabal can't find stdc++ headers or library?

Eric Lasian eric.lasian at gmail.com
Sun Nov 20 17:11:37 CET 2011

Hi all,

When trying to install double-conversion, I'm getting the following errors.

$ cabal install double-conversion
Resolving dependencies...
Warning: double-conversion.cabal: Ignoring unknown section type: test-suite
Configuring double-conversion-
cabal: Missing dependency on a foreign library:
* Missing C library: stdc++
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
double-conversion- failed during the configure step. The exception
ExitFailure 1

So it seems to me that everything is in the expected place: the headers are
in /usr/include/c++/4.* and the library itself is in /usr/lib. Explicitly
forcing cabal to search these directories (with --extra-include-dirs and
--extra-lib-dirs as suggested) doesn't help. Any ideas?

version info: cabal-install version 0.8.0, using version of the
Cabal library, The Glorious Glasgow Haskell Compilation System, version

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111121/c3063d31/attachment.htm>

More information about the Beginners mailing list