[Haskell-beginners] Errors while compiling webkit

Lorenzo Bolla lbolla at gmail.com
Tue Mar 20 12:09:00 CET 2012


Hi all,

I'm trying to compile Haskell's webkit package, but I'm getting this error:

$ cabal install webkit
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     (
/tmp/webkit-0.12.3-9205/webkit-0.12.3/SetupWrapper.hs,
/tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             (
/tmp/webkit-0.12.3-9205/webkit-0.12.3/Setup.hs,
/tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/Main.o )
Linking /tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs,
dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( SetupMain.hs,
dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
Configuring webkit-0.12.3...
Building webkit-0.12.3...
Preprocessing library webkit-0.12.3...
dist/build/Graphics/UI/Gtk/WebKit/Types.h:1:22: fatal error: hswebkit.h: No
such file or directory
compilation terminated.
gtk2hsC2hs: Error during preprocessing custom header file
cabal: Error: some packages failed to install:
webkit-0.12.3 failed during the building phase. The exception was:
ExitFailure 1

I'm compiling it inside a hsenv, with this ghc:
$ ghc -v
Glasgow Haskell Compiler, Version 7.4.1, stage 2 booted by GHC version 7.4.1
Using binary package database: /tmp/webkit/.hsenv/ghc_pkg_db/package.cache
wired-in package ghc-prim mapped to
ghc-prim-0.2.0.0-c2ff696e5b8ec4d4b2bc2e42085fe471
wired-in package integer-gmp mapped to
integer-gmp-0.4.0.0-3cccac07aef8e27023f605c1f45bdf74
wired-in package base mapped to
base-4.5.0.0-40b99d05fae6a4eea95ea69e6e0c9702
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to
template-haskell-2.7.0.0-8c8cd20e21666657195efabced685fe1
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: -static

Any ideas?

Thanks,
L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120320/4fb0d868/attachment.htm>


More information about the Beginners mailing list