[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-0.2.0.3...
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-0.2.0.3 failed during the configure step. The exception
was:
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 1.8.0.2 of the
Cabal library, The Glorious Glasgow Haskell Compilation System, version
7.2.1

Thanks,
Eric
-------------- 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