[Haskell-cafe] cabal install glade

Paul Samways paul at paulsamways.com
Wed Apr 15 06:19:58 UTC 2015


Hi Jean,

How did you install ghc? It looks (and this is coming from someone
relatively new to Haskell) that you've installed GHC 7.10 which the Glade
package isn't compatible with yet. I'm assuming this based on the ambiguous
occurrence of 'die' which was a new function added to System.Exit in
base-4.8 (GHC 7.10).

You could try rolling back to GHC 7.8 or clone the Glade package and fix
the imports.

Cheers,
Paul.

On Wed, Apr 15, 2015 at 1:33 PM Jean Lopes <hawu.bnu at gmail.com> wrote:

> Hello, I am trying to install the Glade package from hackage, and I
> keep getting exit failure...
>
> Hope someone can help me solve it!
>
> What I did:
> $ mkdir ~/haskell/project
> $ cd ~/haskell/project
> $ cabal sandbox init
> $ cabal update
> $ cabal install alex
> $ cabal install happy
> $ cabal install gtk2hs-buildtools
> $ cabal install gtk #successful until here
> $ cabal install glade
>
> The last statement gave me the following error:
>
> $ [1 of 2] Compiling SetupWrapper     (
> /tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs,
>
> /tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/dist/dist-sandbox-acbd4b7/setup/SetupWrapper.o
> )
> $
> $ /tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs:91:17:
> $     Ambiguous occurrence ‘die’
> $     It could refer to either ‘Distribution.Simple.Utils.die’,
> $                              imported from
> ‘Distribution.Simple.Utils’ at
> /tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs:8:1-32
> $                           or ‘System.Exit.die’,
> $                              imported from ‘System.Exit’ at
> /tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs:21:1-18
> $ Failed to install cairo-0.12.5.3
> $ [1 of 2] Compiling SetupWrapper     (
> /tmp/glib-0.12.5.4-5133/glib-0.12.5.4/SetupWrapper.hs,
> /tmp/glib-0.12.5.4-5133/glib-0.12.5.4/dist/dist-sandbox-
> acbd4b7/setup/SetupWrapper.o
> )
> $
> $ /tmp/glib-0.12.5.4-5133/glib-0.12.5.4/SetupWrapper.hs:91:17:
> $     Ambiguous occurrence ‘die’
> $     It could refer to either ‘Distribution.Simple.Utils.die’,
> $                              imported from
> ‘Distribution.Simple.Utils’ at
> /tmp/glib-0.12.5.4-5133/glib-0.12.5.4/SetupWrapper.hs:8:1-32
> $                           or ‘System.Exit.die’,
> $                              imported from ‘System.Exit’ at
> /tmp/glib-0.12.5.4-5133/glib-0.12.5.4/SetupWrapper.hs:21:1-18
> $ Failed to install glib-0.12.5.4
> $ cabal: Error: some packages failed to install:
> $ cairo-0.12.5.3 failed during the configure step. The exception was:
> $ ExitFailure 1
> $ gio-0.12.5.3 depends on glib-0.12.5.4 which failed to install.
> $ glade-0.12.5.0 depends on glib-0.12.5.4 which failed to install.
> $ glib-0.12.5.4 failed during the configure step. The exception was:
> $ ExitFailure 1
> $ gtk-0.12.5.7 depends on glib-0.12.5.4 which failed to install.
> $ pango-0.12.5.3 depends on glib-0.12.5.4 which failed to install.
>
> Important: You can assume I don't know much. I'm rather new to
> Haskell/cabal
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150415/1ad8594a/attachment.html>


More information about the Haskell-Cafe mailing list