GHC is a compiler. 

Ensuring all the necessary libraries are installed is the work of an installer. 

That said, it is *nice* when compilers will statically link your executable. 

Tim Perry
(916) 505-3634


On May 31, 2013, at 9:30 AM, Giacomo Tesio <giacomo@tesio.it> wrote:

I'm wondering why there's no tool that build an EXE that contains everything is needed. statically linking anything that is required... is there any problem with ghc here?


Giacomo


On Fri, May 31, 2013 at 5:28 PM, emacstheviking <objitsu@gmail.com> wrote:
Whatever he said. All I know is that the last time I copied a binary across to another box it failed with a "missing libgmp.so" message! Beware!!

On 31 May 2013 15:13, Brandon Allbery <allbery.b@gmail.com> wrote:
On Fri, May 31, 2013 at 9:03 AM, emacstheviking <objitsu@gmail.com> wrote:
I tried that too... but I think I fell foul to a missing library for the arbitrary length arithmetic. can't remember the name of it off-hand though.

libgmp? I think there are ways to make that get statically linked as well, although various platforms (Debian derivatives, mostly) strongly discourage doing this, to the extent that they modify their packaged ghc to force a dependency on the system gmp library (and, somewhat ironically, are also the ones most prone to having no or an incompatible version installed at runtime).

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners



_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners