[Haskell-cafe] Problem installing svgcairo

Roly Perera roly.perera at dynamicaspects.org
Sun Oct 23 18:49:43 CEST 2011


I'm having a problem installing svgcairo with Cabal, which I need for
something else.

I don't know what's going on, but something (maybe a C preprocessor,
judging by Google search results) barfs with the complaint:

./Graphics/Rendering/Cairo/SVG.chs:209:28: error: missing binary
operator before token "("

I can't find the file SVG.chs on my system to inspect this line, but
perhaps I'm looking in the wrong place.

Has anyone encountered this? Am I perhaps using the wrong version of
Cairo or Gtk? Any suggestions welcome.


$ cabal install svgcairo

Resolving dependencies...
[1 of 2] Compiling SetupWrapper     (
/tmp/svgcairo-0.12.125554/svgcairo-0.12.1/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             (
/tmp/svgcairo-0.12.125554/svgcairo-0.12.1/dist/setup/Main.o )
Linking /tmp/svgcairo-0.12.125554/svgcairo-0.12.1/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 svgcairo-0.12.1...
Preprocessing library svgcairo-0.12.1...
./Graphics/Rendering/Cairo/SVG.chs:209:28: error: missing binary
operator before token "("
gtk2hsC2hs: Error during preprocessing chs file
cabal: Error: some packages failed to install:
svgcairo-0.12.1 failed during the building phase. The exception was:
ExitFailure 1

More information about the Haskell-Cafe mailing list