[Haskell-cafe] Problems installing Data.Encoding package

Brandon Allbery allbery.b at gmail.com
Sat Mar 3 01:29:41 CET 2012

On Fri, Mar 2, 2012 at 04:58, Pēteris Paikens <peterisp at gmail.com> wrote:

> /var/folders/xc/jnh69_cx1n32n1qwkgfrlc100000gq/T/encoding-0.6.620435/encoding-0.6.6/dist/setup/setup:
> /var/folders/xc/jnh69_cx1n32n1qwkgfrlc100000gq/T/encoding-0.6.620435/encoding-0.6.6/dist/setup/setup:
> cannot execute binary file

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

> main = putStrLn "hello world"

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.

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120302/99f57ac9/attachment.htm>

More information about the Haskell-Cafe mailing list