Fails to build during cabal install on Crunchbang, a Debian deriverative
pagea opened this issue · comments
Alden S. Page commented
Here's a dump of the build process:
...
config.status: creating include/X11_extras_config.h
configure: WARNING: unrecognized options: --with-compiler
cabal: Missing dependency on a foreign library:
- Missing header file: HsXlib.h
- Missing C library: Xrandr
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:
X11-1.6.0 failed during the configure step. The exception was:
ExitFailure 1
Daniel Wagner commented
Have you installed the -dev version of Xrandr, as the error says to do?
Alden S. Page commented
Whoops. Apologies for the trivial report. Installing libxrandr-dev solved the problem.