it says: <br><br>libedit.so.0 =&gt; not found<br>&nbsp;&nbsp;&nbsp; libncurses.so.5 =&gt; /usr/lib64/libncurses.so.5 (0x00000039e2200000)<br>&nbsp;&nbsp;&nbsp; libutil.so.1 =&gt; /lib64/libutil.so.1 (0x00000039dba00000)<br>&nbsp;&nbsp;&nbsp; libdl.so.2 =&gt; /lib64/libdl.so.2 (0x00000039cfc00000)<br>
&nbsp;&nbsp;&nbsp; libm.so.6 =&gt; /lib64/libm.so.6 (0x00000039cf800000)<br>&nbsp;&nbsp;&nbsp; libgmp.so.3 =&gt; /usr/lib64/libgmp.so.3 (0x00000039d5800000)<br>&nbsp;&nbsp;&nbsp; librt.so.1 =&gt; /lib64/librt.so.1 (0x00000039d3800000)<br>&nbsp;&nbsp;&nbsp; libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x00000039d0000000)<br>
&nbsp;&nbsp;&nbsp; libc.so.6 =&gt; /lib64/libc.so.6 (0x00000039cf400000)<br>&nbsp;&nbsp;&nbsp; /lib64/ld-linux-x86-64.so.2 (0x00000039cec00000)<br><br>i noticed that my PATH variable doesn&#39;t include /usr/local/lib, do you think this might be the problem?<br>
-james<br><br><div class="gmail_quote">On Fri, Nov 14, 2008 at 1:00 AM, Don Stewart <span dir="ltr">&lt;<a href="mailto:dons@galois.com">dons@galois.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
james.swaine:<br>
<div class="Ih2E3d">&gt; &nbsp; &nbsp;We&#39;ve had unbelievable problems getting past this ridiculous &#39;unable to<br>
&gt; &nbsp; &nbsp;load object file or shared library libedit.so.0&#39; error when attempting to<br>
&gt; &nbsp; &nbsp;build the 6.10.1 source tree. &nbsp;We initially just built editline in a user<br>
&gt; &nbsp; &nbsp;directory and attempted to manipulate environment variables to help the<br>
&gt; &nbsp; &nbsp;linker (e.g. setting LIBRARY_PATH, LD_LIBRARY_PATH, and CPATH) - but this<br>
&gt; &nbsp; &nbsp;did no good.<br>
&gt;<br>
&gt; &nbsp; &nbsp;We then just installed the editline package so it&#39;s available globally and<br>
&gt; &nbsp; &nbsp;the libraries (specifically libedit.so.0) live in /usr/local/lib, so it<br>
&gt; &nbsp; &nbsp;should be found with no problem. &nbsp;Not so for ghc - same error. &nbsp;We&#39;re<br>
&gt; &nbsp; &nbsp;running this on Red Hat.<br>
<br>
</div>What does ldd say?<br>
<br>
It should say something like this (on Arch Linux):<br>
<br>
 &nbsp; &nbsp;$ ldd /usr/lib/ghc-6.10.0/ghc<br>
 &nbsp; &nbsp; &nbsp; &nbsp;linux-vdso.so.1 &nbsp; &nbsp; =&gt; &nbsp;(0x00007fffb09fe000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libedit.so.0 &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /usr/lib/libedit.so.0 (0x00007f6aa8479000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libncursesw.so.5 &nbsp; &nbsp;=&gt; /lib/libncursesw.so.5 (0x00007f6aa820f000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libutil.so.1 &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /lib/libutil.so.1 (0x00007f6aa800c000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libdl.so.2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /lib/libdl.so.2 (0x00007f6aa7e08000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libm.so.6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; /lib/libm.so.6 (0x00007f6aa7b85000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libgmp.so.3 &nbsp; &nbsp; &nbsp; &nbsp; =&gt; /usr/lib/libgmp.so.3 (0x00007f6aa7943000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;librt.so.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /lib/librt.so.1 (0x00007f6aa773b000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libpthread.so.0 &nbsp; &nbsp; =&gt; /lib/libpthread.so.0 (0x00007f6aa7520000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;libc.so.6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; /lib/libc.so.6 (0x00007f6aa71cc000)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/lib/ld-linux-x86-64.so.2 (0x00007f6aa86a7000)<br>
<br>
For example, let&#39;s you know if the system linker can see libedit (and the other<br>
C libraries GHC uses)<br>
<div class="Ih2E3d"><br>
&gt; &nbsp; &nbsp;I&#39;m part of a research group at Northwestern University that is exploring<br>
&gt; &nbsp; &nbsp;the use of ghc and associated libraries for some upcoming projects. &nbsp;It&#39;s<br>
&gt; &nbsp; &nbsp;a shame that this is so difficult to even compile/install, and nobody<br>
&gt; &nbsp; &nbsp;seems to be able to figure out what&#39;s wrong.<br>
<br>
</div>Do you have the option of using a distro package? Has GHC 6.10.x been packaged for<br>
your distro yet? Do you have the option of using GHC 6.8.x for now, or is there some<br>
feature in 6.10.x you expect to depend on?<br>
<font color="#888888"><br>
-- Don<br>
</font></blockquote></div><br>