Installing ghc binaries on Linux (can't find libgmp.so)

前端 未结 3 1663
伪装坚强ぢ
伪装坚强ぢ 2020-12-24 12:40

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

相关标签:
3条回答
  • 2020-12-24 12:53

    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).

    0 讨论(0)
  • 2020-12-24 13:11

    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.

    0 讨论(0)
  • 2020-12-24 13:14

    Installing gmp-devel package helped in my case (opensuse)

    0 讨论(0)
提交回复
热议问题