<div dir="ltr">Hi Jean,<div><br></div><div>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).</div><div><br></div><div>You could try rolling back to GHC 7.8 or clone the Glade package and fix the imports.</div><div><br></div><div>Cheers,</div><div>Paul.</div></div><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 1:33 PM Jean Lopes <<a href="mailto:hawu.bnu@gmail.com">hawu.bnu@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, I am trying to install the Glade package from hackage, and I<br>
keep getting exit failure...<br>
<br>
Hope someone can help me solve it!<br>
<br>
What I did:<br>
$ mkdir ~/haskell/project<br>
$ cd ~/haskell/project<br>
$ cabal sandbox init<br>
$ cabal update<br>
$ cabal install alex<br>
$ cabal install happy<br>
$ cabal install gtk2hs-buildtools<br>
$ cabal install gtk #successful until here<br>
$ cabal install glade<br>
<br>
The last statement gave me the following error:<br>
<br>
$ [1 of 2] Compiling SetupWrapper (<br>
/tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs,<br>
/tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/dist/dist-sandbox-acbd4b7/setup/SetupWrapper.o<br>
)<br>
$<br>
$ /tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs:91:17:<br>
$ Ambiguous occurrence ‘die’<br>
$ It could refer to either ‘Distribution.Simple.Utils.die’,<br>
$ imported from<br>
‘Distribution.Simple.Utils’ at<br>
/tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs:8:1-32<br>
$ or ‘System.Exit.die’,<br>
$ imported from ‘System.Exit’ at<br>
/tmp/cairo-0.12.5.3-5133/cairo-0.12.5.3/SetupWrapper.hs:21:1-18<br>
$ Failed to install cairo-0.12.5.3<br>
$ [1 of 2] Compiling SetupWrapper (<br>
/tmp/glib-0.12.5.4-5133/glib-<a href="http://0.12.5.4/SetupWrapper.hs" target="_blank">0.12.5.4/SetupWrapper.hs</a>,<br>
/tmp/glib-0.12.5.4-5133/glib-<a href="http://0.12.5.4/dist/dist-sandbox-" target="_blank">0.12.5.4/dist/dist-sandbox-</a>acbd4b7/setup/SetupWrapper.o<br>
)<br>
$<br>
$ /tmp/glib-0.12.5.4-5133/glib-<a href="http://0.12.5.4/SetupWrapper.hs:91" target="_blank">0.12.5.4/SetupWrapper.hs:91</a>:17:<br>
$ Ambiguous occurrence ‘die’<br>
$ It could refer to either ‘Distribution.Simple.Utils.die’,<br>
$ imported from<br>
‘Distribution.Simple.Utils’ at<br>
/tmp/glib-0.12.5.4-5133/glib-<a href="http://0.12.5.4/SetupWrapper.hs:8:1-" target="_blank">0.12.5.4/SetupWrapper.hs:8:1-</a>32<br>
$ or ‘System.Exit.die’,<br>
$ imported from ‘System.Exit’ at<br>
/tmp/glib-0.12.5.4-5133/glib-<a href="http://0.12.5.4/SetupWrapper.hs:21:1-" target="_blank">0.12.5.4/SetupWrapper.hs:21:1-</a>18<br>
$ Failed to install glib-0.12.5.4<br>
$ cabal: Error: some packages failed to install:<br>
$ cairo-0.12.5.3 failed during the configure step. The exception was:<br>
$ ExitFailure 1<br>
$ gio-0.12.5.3 depends on glib-0.12.5.4 which failed to install.<br>
$ glade-0.12.5.0 depends on glib-0.12.5.4 which failed to install.<br>
$ glib-0.12.5.4 failed during the configure step. The exception was:<br>
$ ExitFailure 1<br>
$ gtk-0.12.5.7 depends on glib-0.12.5.4 which failed to install.<br>
$ pango-0.12.5.3 depends on glib-0.12.5.4 which failed to install.<br>
<br>
Important: You can assume I don't know much. I'm rather new to Haskell/cabal<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>