[Haskell-cafe] Fwd: [Gtk2hs-users] Installation problem with cairo.

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Tue Jun 8 07:58:48 EDT 2010


Hi, I cannot subscribe to libraries maillist. So I forward this here.
I cannot install gtk2hs-cairo by cabal using cairo 1.9.6 compiled
myself. Cabal always said that the cairo library/devel files were
missing.

---------- Forwarded message ----------
From: Axel Simon <Axel.Simon at in.tum.de>
Date: Tue, Jun 8, 2010 at 7:15 PM
Subject: Re: [Gtk2hs-users] Installation problem with cairo.
To: Magicloud Magiclouds <magicloud.magiclouds at gmail.com>
Cc: gtk2hs-users <gtk2hs-users at lists.sourceforge.net>


Hi again,

it's very difficult for me to say what is happening. Could you ask on
the cabal mailing list to see if anybody there has an idea.

Cheers,
Axel

On 08.06.2010, at 11:01, Magicloud Magiclouds wrote:

> I've tried a little, the error was not thrown out in gtk2hssetup.hs.
> And even I faked a version (1.8.10), it did not work.
>
> On Tue, Jun 8, 2010 at 3:47 PM, Axel Simon <Axel.Simon at in.tum.de> wrote:
>>
>> Hi,
>>
>> On Jun 8, 2010, at 9:21, Magicloud Magiclouds wrote:
>>
>>> Yes, seems like so.
>>> Here is the output:
>>>
>>> # /usr/bin/pkg-config --modversion cairo-pdf
>>> 1.9.6
>>> # /usr/bin/pkg-config --modversion cairo-ps
>>> 1.9.6
>>> # /usr/bin/pkg-config --modversion cairo-svg
>>> 1.9.6
>>> # /usr/bin/pkg-config --modversion cairo
>>> 1.9.6
>>>
>>
>> Oh dear.
>>
>> Since cabal manages once to get the correct version and fails later on, I
>> assume it's the magic Duncan added to out Gtk2HsSetup.hs file that requests
>> the package version again. If you look for
>>
>> --FIXME: Cabal should tell us the selected pkg-config package versions in
>> the
>> --       LocalBuildInfo or equivalent.
>> --       In the mean time, ask pkg-config again.
>>
>> in the cabal file and try to add some debugging output then maybe you can
>> find out more.
>>
>> I suspect that either the LocalBuildInfo or the PackageDescription value is
>> not the most up-to-date one but some default value that lack some path or
>> some such.
>>
>> cheers,
>> Axel
>>
>>> On Tue, Jun 8, 2010 at 2:56 PM, Axel Simon <Axel.Simon at in.tum.de> wrote:
>>>>
>>>> Hi,
>>>>
>>>> On Jun 8, 2010, at 8:54, Magicloud Magiclouds wrote:
>>>>
>>>>> /usr/bin/pkg-config --modversion cairo
>>>>> setup: Missing dependency on a foreign library:
>>>>> * Missing C library: cairo
>>>>> 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.
>>>>
>>>> well, what's the output of
>>>>
>>>>> /usr/bin/pkg-config --modversion cairo
>>>>
>>>> ? Maybe cabal fails to parse the version for some reason.
>>>>
>>>> Axel
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 竹密岂妨流水过
>>> 山高哪阻野云飞
>>
>>
>
>
>
> --
> 竹密岂妨流水过
> 山高哪阻野云飞




-- 
竹密岂妨流水过
山高哪阻野云飞


More information about the Haskell-Cafe mailing list