Problems installing Data.Encoding package

Hello, I'm stuck at trying to get Data.Encoding package functional. Cabal gives the following error message: cabal install encoding Resolving dependencies... /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 cabal: Error: some packages failed to install: encoding-0.6.6 failed during the configure step. The exception was: ExitFailure 126 What could be done here? I'm on MacOS Lion, ghc v. 7.0.4 Regards, Peteris

On Fri, Mar 2, 2012 at 04:58, Pēteris Paikens
/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@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

Pēteris Paikens wrote:
I'm stuck at trying to get Data.Encoding package functional. Cabal gives the following error message:
This is caused by a problem with the cabal file in the encoding package. Often it causes the entire GHC package system to get confused, as pointed out by Brandon. The problem is that encoding depends on HaXML, but only sets a lower bound for the version of HaXML (>= 1.19) with no upper bound. The encoding package does not work with the current version of HaXML. There have been several bumps of the major version number of HaXML (1.22 > 1.19). A lot of people have been experiencing problems due to this bug. I am including the person listed as the maintainer of the encoding package in the CC to this message. I hope that the bug will soon be fixed. In the meantime, you can edit the cabal file of the encodings package manually. (Set its version number to something weird, with extra components, to avoid future problems.) Hope this helps, Yitz
participants (3)
-
Brandon Allbery
-
Pēteris Paikens
-
Yitzchak Gale