On 28 May 2012 16:37, <wagnerdm@seas.upenn.edu> wrote:
Quoting Axel Simon <Axel.Simon@in.tum.de>:

>> Hi there. I am trying to cabal install cairo but i get this error everytime:
>> setup: The pkg-config package cairo-pdf is required but it could
>> not be found.
>> cabal: Error: some packages failed to install:
>> cairo-0.12.1 failed during the configure step. The exception was:
>> ExitFailure 1
>> I am using Ubuntu! Any help?
> You need to install cairo which should install pkg-config. If you
> run pkg-config on you system, it will tell you what packages you
> have installed.

To clarify this slightly: there is a Haskell cairo library and a C
cairo library; the Haskell library calls out to the C one. You'll need
to install the C one before the Haskell one can be built. This can
usually be done from your distribution's package manager (from memory,
called one of aptitude, synaptic, or the software center). Look for a
package named something like "libcairo-dev", or, in the case of
cairo-pdf, perhaps "libcairo-pdf-dev".

If I'm not mistaken, it's actually libcairo2-dev.


Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Gtk2hs-users mailing list