That didn't work. 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. 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. 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"><<a href="mailto:Christian.Maeder@dfki.de">Christian.Maeder@dfki.de</a>></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>
> I can't seem to get the latest source bundle to build (running on Red<br>
> Hat). I run the configure script, then make on the source tree root,<br>
> and ghc gives an error to the effect of 'could not load shared object<br>
> file or library libedit.so.0'. I don't have root permissions on this<br>
> machine so I can't install editline on this machine, but I downloaded<br>
> the source, built in my local directory, then tried:<br>
><br>
> -Setting the LD_LIBRARY_PATH environment variable to include the<br>
> 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>
> -Hand editing the makefile in ghc's 'libraries' directory to add an<br>
> -L[librarydir] flag to the ghc invocation that was failing.<br>
><br>
> Neither of these things worked - is there an easy way to tell the<br>
> configure script that it needs to probe additional directories for these<br>
> shared libraries?<br>
><br>
> Thanks all!<br>
> -James Swaine<br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Glasgow-haskell-users mailing list<br>
> <a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
> <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>