[Haskell-cafe] Compile one static Haskell binary for all x86_64 Linux distributions, is it possible?

Joachim Breitner mail at joachim-breitner.de
Fri Feb 10 22:58:59 CET 2012


Am Freitag, den 10.02.2012, 18:21 +0100 schrieb Morten Olsen lysgaard:
> I tried with:
> ghc --make -static -rtsopts=all -optl-pthread -optl-static Program.hs
> When I copy the binary created over to my x86_64 Ubuntu 11.10 desktop 
> and run it I get:
> Program: mkTextEncoding: invalid argument (Invalid argument)

this is how I deploy some of my Debian related programs on Debian stable
machines. After setting
export GCONV_PATH=/usr/lib64/gconv
this binary will work fine. (Your path might need adjustment, just find
the path that contains gconv-modules and a lot of <encoding>.so files.)


Joachim "nomeata" Breitner
  mail at joachim-breitner.de  |  nomeata at debian.org  |  GPG: 0x4743206C
  xmpp: nomeata at joachim-breitner.de | http://www.joachim-breitner.de/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120210/8fe29b99/attachment-0001.pgp>

More information about the Haskell-Cafe mailing list