<div dir="ltr">On Fri, Mar 2, 2012 at 04:58, Pēteris Paikens <span dir="ltr">&lt;<a href="mailto:peterisp@gmail.com">peterisp@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
/var/folders/xc/jnh69_cx1n32n1qwkgfrlc100000gq/T/encoding-0.6.620435/encoding-0.6.6/dist/setup/setup:<br>
/var/folders/xc/jnh69_cx1n32n1qwkgfrlc100000gq/T/encoding-0.6.620435/encoding-0.6.6/dist/setup/setup:<br>
cannot execute binary file<br>
</blockquote><div><br>That suggests something is seriously wrong with your installed ghc.  Specifically, cabal is compiling the Setup.{,l}hs that comes with the package, and the result is not a valid executable for some reason.  I suggest you see if a simple<br>
<br>&gt; main = putStrLn &quot;hello world&quot;<br><br>compiles and runs, and if so then try compiling the Setup.hs or Setup.lhs file in the distribution manually and see if that compiles and runs.<br><br></div></div>-- <br>
brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br><br>
</div>