[Haskell-beginners] Cannot install cairo with cabal...

Jack Henahan jhenahan at uvm.edu
Thu Jul 7 12:41:05 CEST 2011


Omit parens, sub 'e.g.,' for 'i.e.,'. I look a fool. :D

On Jul 7, 2011, at 6:38 AM, Jack Henahan wrote:

> That looks like it might be a bug in the source. What it says, in short, is that it expects that sixth argument in (i.e., registerPackage _ _ _ _ _ O) to be a PackageDBStack, but instead it's a PackageDB.
> 
> The lines around where the error occurs are
> 
>    #if CABAL_VERSION_CHECK(1,10,0)
>                                        installedPkgInfo pkg lbi inplace [packageDb]
>    #else
>                                        installedPkgInfo pkg lbi inplace packageDb
>    #endif
> 
> So it seems that it can't infer your cabal's minor version, so it drops into the else. Do you get any different result when you call `cabal install --ghc-option=DCABAL_VERSION_MINOR=10 cairo`?
> 
> On Jul 7, 2011, at 4:19 AM, Sean Charles wrote:
> 
>> flushed as in happy, not like a buffer, with my recent OpenGL and haskell hacking I attempted to install cairo to try rendering a cairo generated image into a GL texture but once again, the sometimes obstreperous cabal is making it hard.
>> 
>> <rant>
>> I sometimes think that cabal is the "weak" point for newbies like me accepting Haskell in all its goodness... if you can't cleanly and simply install libraries then ultimately you will walk away for something less obstructive...
>> </rant>
>> 
>> Can anybody tell me that this means and how to solve it ?
>> Thanks,
>> Sean.
>> 
>> -----
>> scharles at ubuntu:~/stuff/hackinge/objitsu/trunk/haskell/felt/src$ cabal --version
>> cabal-install version 0.10.2
>> using version 1.10.2.0 of the Cabal library
>> scharles at ubuntu:~/stuff/hackinge/objitsu/trunk/haskell/felt/src$ ghc --version
>> The Glorious Glasgow Haskell Compilation System, version 6.12.3
>> scharles at ubuntu:~/stuff/hackinge/objitsu/trunk/haskell/felt/src$ ghci --version
>> The Glorious Glasgow Haskell Compilation System, version 6.12.3
>> -----
>> 
>> /tmp/cairo-0.12.013023/cairo-0.12.0/Gtk2HsSetup.hs:25:2:
>>    warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command)
>> [1 of 2] Compiling Gtk2HsSetup      ( /tmp/cairo-0.12.013023/cairo-0.12.0/Gtk2HsSetup.hs, /tmp/cairo-0.12.013023/cairo-0.12.0/dist/setup/Gtk2HsSetup.o )
>> 
>> /tmp/cairo-0.12.013023/cairo-0.12.0/Gtk2HsSetup.hs:201:69:
>>   Couldn't match expected type `PackageDBStack'
>>          against inferred type `PackageDB'
>>   In the sixth argument of `registerPackage', namely `packageDb'
>>   In the expression:
>>       registerPackage
>>         verbosity installedPkgInfo pkg lbi inplace packageDb
>>   In a case alternative:
>>       _ | modeGenerateRegFile -> die "Generate Reg File not supported"
>>         | modeGenerateRegScript -> die "Generate Reg Script not supported"
>>         | otherwise
>>         -> registerPackage
>>              verbosity installedPkgInfo pkg lbi inplace packageDb
>> cabal: Error: some packages failed to install:
>> cairo-0.12.0 failed during the configure step. The exception was:
>> ExitFailure 1
>> 
>> 
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://www.haskell.org/mailman/listinfo/beginners
> 
> 
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners




More information about the Beginners mailing list