[Haskell-beginners] cabal can't find stdc++ headers or library?
eric.lasian at gmail.com
Sun Nov 20 17:11:37 CET 2011
When trying to install double-conversion, I'm getting the following errors.
$ cabal install double-conversion
Warning: double-conversion.cabal: Ignoring unknown section type: test-suite
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
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 18.104.22.168 of the
Cabal library, The Glorious Glasgow Haskell Compilation System, version
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners