That didn&#39;t work.&nbsp; My editline build is in the directory /home/jswaine/libedit, with the actual library being in /home/jswaine/libedit/lib and the includes being in /home/jswaine/libedit/include.&nbsp; So when I invoked the configure script, I did it like so: <br>
<br>/.configure LIBRARY_PATH=$LIBRARY_PATH$:/home/jswaine/libedit/lib CPATH=CPATH$:/home/jswaine/libedit/include <br><br>But still for some reason I get the same error.&nbsp; Am I doing this correctly? <br><br>Thanks! <br>-James <br>
<br><div class="gmail_quote">On Wed, Nov 12, 2008 at 3:59 AM, Christian Maeder <span dir="ltr">&lt;<a href="mailto:Christian.Maeder@dfki.de">Christian.Maeder@dfki.de</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;">
<div class="Ih2E3d">James Swaine wrote:<br>
&gt; I can&#39;t seem to get the latest source bundle to build (running on Red<br>
&gt; Hat). &nbsp;I run the configure script, then make on the source tree root,<br>
&gt; and ghc gives an error to the effect of &#39;could not load shared object<br>
&gt; file or library libedit.so.0&#39;. &nbsp;I don&#39;t have root permissions on this<br>
&gt; machine so I can&#39;t install editline on this machine, but I downloaded<br>
&gt; the source, built in my local directory, then tried:<br>
&gt;<br>
&gt; -Setting the LD_LIBRARY_PATH environment variable to include the<br>
&gt; directory path to the libedit.so.0 library I just built.<br>
<br>
</div>Set LIBRARY_PATH and CPATH to your local lib resp. include directory<br>
when building. (LD_LIBRARY_PATH is used at runtime)<br>
<br>
Cheers Christian<br>
<div class="Ih2E3d"><br>
&gt; -Hand editing the makefile in ghc&#39;s &#39;libraries&#39; directory to add an<br>
&gt; -L[librarydir] flag to the ghc invocation that was failing.<br>
&gt;<br>
&gt; Neither of these things worked - is there an easy way to tell the<br>
&gt; configure script that it needs to probe additional directories for these<br>
&gt; shared libraries?<br>
&gt;<br>
&gt; Thanks all!<br>
&gt; -James Swaine<br>
&gt;<br>
&gt;<br>
</div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Glasgow-haskell-users mailing list<br>
&gt; <a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div><br>