Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Haskell cairo on Windows

I am trying to install cairo on Windows XP and this is the command that I am trying:

cabal install cairo --extra-include-dirs="C:\cygwin\usr\include" --extra-lib-dirs="C:\cygwin\lib" --extra-include-dirs="C:\cygwin\usr\include\cairo"

And the full output that I get can be seen at this pastie but the real error is this:

Registering cairo-0.12.0...
setup.exe: cairo-0.12.0: include-dirs: /usr/include/cairo doesn't exist or
isn't a directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/pixman-1 doesn't exist or isn't a
directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/freetype2 doesn't exist or isn't a
directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/libpng12 doesn't exist or isn't a
directory (use --force to override)
cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the building phase. The exception was:
ExitFailure 1

I know that those directories do not exist but I cannot figure out for the life of me how to get it to look at the right directories. Does anybody know how I can get this install to work? Thanks for any and all help.

like image 715
Robert Massaioli Avatar asked May 22 '26 16:05

Robert Massaioli


1 Answers

The default distribution of GHC targets native (well, mingw) executables. These cannot be mixed with Cygwin libraries.

You'll have to use a native (non-Cygwin) installation of Cairo.

like image 180
ephemient Avatar answered May 25 '26 13:05

ephemient



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!