I am trying to install the Haskell Platform on Linux for the first time (I\'m also a fairly new Linux user). The victim system is a fresh Red Hat system. And everything invo
I'm not sure that setting a symbolic link from libgmp.so to libgmp.so.3 is the right way to go. What happens when you get a version update and so libgmp.so.3 disappears. Setting LD_LIBRARY_PATH seems like a better solution.
There's also another solution for RedHat/CentOS and by extension probably Fedora: install the gmp-devel package. This sets up the symbolic link above, but does so with in the distribution (so updates should update the symbolic link also).
You either add /usr/local/lib
and/or /usr/local/lib64
to $LD_LIBRARY_PATH
, or add them to /etc/ld.so.conf
, or (since you already have /usr/lib64/libgmp.so.3
) add a missing symbolic link:
cd /usr/lib64
sudo ln -s libgmp.so.3 libgmp.so
(and perhaps the same for /usr/lib).
Note that /usr/lib64/libgmp.so.3 might be a different version from /usr/local/lib64/libgmp.so, make sure ghc can actually be used with the former.
Installing gmp-devel package helped in my case (opensuse)