<div dir="ltr">We have sandboxes now, which (I think) weren't there 2 yrs ago.<div>Try this:</div><div><br></div><div><font face="monospace, monospace">$ mkdir hse                                          # </font><span style="font-family:monospace,monospace">Directory for </span><span style="font-family:monospace,monospace">Haskell school of expression </span></div><div><font face="monospace, monospace">$ cd hse</font></div><div><font face="monospace, monospace">$ cabal sandbox init                                 # Create a new sandbox</font></div><div><span style="font-family:monospace,monospace">$ cabal install gtk2hs-buildtools                    # Install gtk2hs-buildtools inside sandbox</span><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">$ export PATH=".cabal-sandbox/bin:$PATH"             # Add the binaries installed in (current directory's) sandbox to $PATH</font></div><div><font face="monospace, monospace">$ cabal install gtk                                  # Install gtk (and anything else you need)</font></div><div><br></div><div>The above works in my case. Also, if you have a lot of packages installed in "~/.cabal", then I recommend that you remove them and install them in sandboxes where they are actually required.</div><div>Manually, you'd do it as follows:</div><div><br></div><div><span style="font-family:monospace,monospace">$ mv ~/.cabal/packages ~/temporary_package_storage   # Long name to avoid clash, save downloaded package sources</span><br></div><div><span style="font-family:monospace,monospace">$ rm -rf ~/.ghc ~/.cabal                             # Remove all packages, and ghc's knowledge of them</span><br></div><div><font face="monospace, monospace"><div><span class="" style="white-space:pre">$ </span>mkdir ~/.cabal                                     # Make a new ~/.cabal directory</div><div>$ mv ~/temporary_package_storage ~/.cabal/packages   # Reinsert the saved downloaded package sources</div><div><br></div></font></div><div>For more info, look here: <a href="https://www.haskell.org/cabal/users-guide/installing-packages.html#developing-with-sandboxes">https://www.haskell.org/cabal/users-guide/installing-packages.html#developing-with-sandboxes</a></div><div>Also, after some time it becomes natural to deal with cabal.</div><div><br></div><div>For example, I have that export line in my .zshrc. Thus the sandbox residing in current directory is always in my path.</div><div>Also, a shell function that you may want to use.</div><div><br></div><div><div><font face="monospace, monospace">cabal-reset () {</font></div><div><font face="monospace, monospace">    if [[ ! -d ~/.cabal-packages ]] ; then           # If backup does not exist</font></div><div><font face="monospace, monospace">        mv ~/.cabal/packages ~/.cabal-packages       # Make a backup</font></div><div><font face="monospace, monospace">    fi</font></div><div><font face="monospace, monospace">    rm -rf ~/.ghc ~/.cabal                           # Nuke everything</font></div><div><font face="monospace, monospace">    mkdir ~/.cabal                                   # Create new ~/.cabal</font></div><div><font face="monospace, monospace">    ln -s ~/.cabal-packages ~/.cabal/packages        # Symlink backup to ~/.cabal/packages</font></div><div><font face="monospace, monospace">}</font></div><div><br></div></div><div>Hope this helps.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 March 2015 at 10:10, DJ <span dir="ltr"><<a href="mailto:jakep@arqux.com" target="_blank">jakep@arqux.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Trying to install the package soegtk.<br>
<br>
I am running linux mint 17 with the latest (as of Feb. 28) haskell platform and cabal-install.<br>
<br>
I did install gtk2hs-buildtools and put the .cabal/bin in my path.<br>
<br>
Cannot install soegtk:<br>
<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>
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>
soegtk-0.12.1 depends on glib-0.12.5.4 which failed to install.<br>
<br>
Confession: I abandoned Haskell two years ago because of frustration with cabal and hackage. I decided to get back to the language today, and to start with Haskell School of Expression. I immediately run into the problem that the first thing I try to install with cabal does not work.<br>
<br>
Thanks for any help. Please tell me things are not just as bad now as they were when I left ;-)<br>
<br>
- DJP -<br>
<br>
______________________________<u></u>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-<u></u>bin/mailman/listinfo/beginners</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Regards</div><div dir="ltr"><div><br></div><div>Sumit Sahrawat</div></div></div></div></div></div></div>
</div>