<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 12:42 PM, Andreas Abel <span dir="ltr"><<a href="mailto:andreas.abel@ifi.lmu.de" target="_blank">andreas.abel@ifi.lmu.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I tried the 64bit binary packages from<br>
<br>
  <a href="http://haskell.org/ghc" target="_blank">haskell.org/ghc</a><br>
<br>
but I got a complaint that<br>
<br>
  libgmp.so.3<br>
<br>
is not found on my system (and locate did not reveal it).  I have several of these libgmp.so, but apparently not the right one<br>
<br>
locate libgmp.so<br></blockquote><div><br></div><div>It's a side effect of the distro that these packages are built on. They have a libgmp.so.3 that configure finds/uses, but I think most distros no longer install that. Often times they do have a suitable libgmp and a symlink can fix the issue.</div>
<div><br></div><div>What I do when I run into this is something roughly like this:</div><div><br></div><div>1. Run ldd on the executable that is complaining  (alternatively, you can use readelf -d), to find out what shared object is not being loaded correctly and get a hint of the expected path. If you can't figure out the path, then assume it will be the same path used by other .so files.</div>
<div><br></div><div>2. Find a close match, such as the ones you found with locate.</div><div><br></div><div>3. (Optional) install the necessary package because no close match is there.</div><div><br></div><div>4.  Create a symlink in the right place.</div>
<div><br></div><div>Building from source is usually easier :)</div><div><br></div><div>Jason</div></div></div></div>