I am trying to provide users of my program with some Linux executables in addition to current Windows, so I installed Ubuntu 11.10 (since the haskell platform package on 11.04 is still a 2010 version). However, when I try to run the resulting binary on Ubuntu 10.04, I get a message that it cannot find libgmp.so.10. Checking / usr / lib shows that 10.04 comes with libgmp.so.3, while 11.10 has libgmp.so.10. Therefore, it seems that the GHC is communicating with libgmp dynamically and not statically, which I thought was the default.
Is there a way to tell GHC to statically include libgmp in a binary? If not, is there another solution that does not require the user to install a different version of libgmp?
source share