Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling ghc binaries on Linux (can't find libgmp.so)
    primarykey
    data
    text
    <p>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 involved here should be 64 bit.</p> <p>The directions at the platform website [1] indicate that I need a ghc7.0.3 to boostrap things. They provide a link to a generic binary of ghc-7.0.3 to do this. I fetched this and ran</p> <pre><code>$ ./configure ... $ make install ... </code></pre> <p>as per the directions without incident (it is a binary, so no compilation needed) However, when I tried to run ghci I get the output.</p> <pre><code>$ ghci GHCi, version 7.0.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... &lt;command line&gt;: can't load .so/.DLL for: gmp (libgmp.so: cannot open shared object file: No such file or directory) </code></pre> <p>For some reason ghci cannot find libgmp.so. Running ghci ultimately invokes</p> <pre><code> /usr/local/lib/ghc-7.0.3/ghc </code></pre> <p>with a mess of options. I checked the dependencies via ldd</p> <pre><code>$ ldd /usr/local/lib/ghc-7.0.3/ghc linux-vdso.so.1 =&gt; (0x00007fffe5f5c000) libncursesw.so.5 =&gt; /lib64/libncursesw.so.5 (0x0000003ee7000000) librt.so.1 =&gt; /lib64/librt.so.1 (0x0000003ee5800000) libutil.so.1 =&gt; /lib64/libutil.so.1 (0x0000003ef3000000) libdl.so.2 =&gt; /lib64/libdl.so.2 (0x0000003ee5000000) libgmp.so.3 =&gt; /usr/lib64/libgmp.so.3 (0x0000003ee4400000) libm.so.6 =&gt; /lib64/libm.so.6 (0x0000003ee4c00000) libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x0000003ee5400000) libc.so.6 =&gt; /lib64/libc.so.6 (0x0000003ee4800000) libtinfo.so.5 =&gt; /lib64/libtinfo.so.5 (0x0000003ef3400000) /lib64/ld-linux-x86-64.so.2 (0x0000003ee4000000) </code></pre> <p>and it shows that it foud libgmp. libgmp is in /usr/local/lib and /usr/local/lib64. I am not sure how to get further with this. Any suggestions?</p> <p>[1] <a href="http://hackage.haskell.org/platform/linux.html" rel="noreferrer">http://hackage.haskell.org/platform/linux.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload