
I can't seem to get the latest source bundle to build (running on Red Hat). I run the configure script, then make on the source tree root, and ghc gives an error to the effect of 'could not load shared object file or library libedit.so.0'. I don't have root permissions on this machine so I can't install editline on this machine, but I downloaded the source, built in my local directory, then tried: -Setting the LD_LIBRARY_PATH environment variable to include the directory path to the libedit.so.0 library I just built. -Hand editing the makefile in ghc's 'libraries' directory to add an -L[librarydir] flag to the ghc invocation that was failing. Neither of these things worked - is there an easy way to tell the configure script that it needs to probe additional directories for these shared libraries? Thanks all! -James Swaine

James Swaine wrote:
I can't seem to get the latest source bundle to build (running on Red Hat). I run the configure script, then make on the source tree root, and ghc gives an error to the effect of 'could not load shared object file or library libedit.so.0'. I don't have root permissions on this machine so I can't install editline on this machine, but I downloaded the source, built in my local directory, then tried:
-Setting the LD_LIBRARY_PATH environment variable to include the directory path to the libedit.so.0 library I just built.
Set LIBRARY_PATH and CPATH to your local lib resp. include directory when building. (LD_LIBRARY_PATH is used at runtime) Cheers Christian
-Hand editing the makefile in ghc's 'libraries' directory to add an -L[librarydir] flag to the ghc invocation that was failing.
Neither of these things worked - is there an easy way to tell the configure script that it needs to probe additional directories for these shared libraries?
Thanks all! -James Swaine
------------------------------------------------------------------------
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

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

James Swaine wrote:
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:
/.configure LIBRARY_PATH=$LIBRARY_PATH$:/home/jswaine/libedit/lib CPATH=CPATH$:/home/jswaine/libedit/include
But still for some reason I get the same error. Am I doing this correctly?
use export: export LIBRARY_PATH=/home/jswaine/libedit/lib export CPATH=/home/jswaine/libedit/include ./configure make (and but your own path first) Cheers Christian

That still didn't do anything. Here's the exact error text I'm getting:
error while loading shared libraries: libedit.so.0: cannot open shared
object file: No such file or directory
make[1]: *** [cabal-bin] Error 127
make[1]: Leaving directory `/home/jswaine/ghc/ghc-6.10.1/libraries'
make: *** [stage1] Error 2
Thanks,
James
On Wed, Nov 12, 2008 at 11:35 AM, Christian Maeder wrote: James Swaine wrote: 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: /.configure LIBRARY_PATH=$LIBRARY_PATH$:/home/jswaine/libedit/lib
CPATH=CPATH$:/home/jswaine/libedit/include But still for some reason I get the same error. Am I doing this
correctly? use export: export LIBRARY_PATH=/home/jswaine/libedit/lib
export CPATH=/home/jswaine/libedit/include
./configure
make (and but your own path first) Cheers Christian

James Swaine wrote:
That still didn't do anything. Here's the exact error text I'm getting:
error while loading shared libraries: libedit.so.0: cannot open shared object file: No such file or directory make[1]: *** [cabal-bin] Error 127 make[1]: Leaving directory `/home/jswaine/ghc/ghc-6.10.1/libraries' make: *** [stage1] Error 2 use export:
and export LD_LIBRARY_PATH=/home/jswaine/libedit/lib Are you sure /home/jswaine/libedit/lib/libedit.so.0 is a valid file? C.

Aha! That *seems* to have fixed the problem with libedit.so.0. Now ghc is
complaining about something else:
grep: packages: No such file or directory
make -C libraries boot
make[1]: Entering directory `/home/jswaine/ghc/ghc-6.10.1/libraries'
mkdir bootstrapping
mkdir: cannot create directory `bootstrapping': File exists
make[1]: [cabal-bin] Error 1 (ignored)
/home/jswaine/ghc/ghc-6.10.1/ghc/ghc -Wall -DCABAL_VERSION=1,6,0,1 -odir
/home/jswaine/ghc/ghc-6.10.1/libraries/bootstrapping -hidir
/home/jswaine/ghc/ghc-6.10.1/libraries/bootstrapping
-i/home/jswaine/ghc/ghc-6.10.1/libraries/Cabal
-i/home/jswaine/ghc/ghc-6.10.1/libraries/filepath
-i/home/jswaine/ghc/ghc-6.10.1/libraries/hpc --make cabal-bin -o cabal-bin
ghc: missing -B<dir> option
make[1]: *** [cabal-bin] Error 1
make[1]: Leaving directory `/home/jswaine/ghc/ghc-6.10.1/libraries'
make: *** [stage1] Error 2
Thanks!
-James
On Wed, Nov 12, 2008 at 12:01 PM, Christian Maeder wrote: James Swaine wrote: That still didn't do anything. Here's the exact error text I'm getting: error while loading shared libraries: libedit.so.0: cannot open shared
object file: No such file or directory
make[1]: *** [cabal-bin] Error 127
make[1]: Leaving directory `/home/jswaine/ghc/ghc-6.10.1/libraries'
make: *** [stage1] Error 2
use export: and
export LD_LIBRARY_PATH=/home/jswaine/libedit/lib Are you sure /home/jswaine/libedit/lib/libedit.so.0 is a valid file? C.

James Swaine wrote:
Aha! That *seems* to have fixed the problem with libedit.so.0. Now ghc is complaining about something else:
grep: packages: No such file or directory make -C libraries boot make[1]: Entering directory `/home/jswaine/ghc/ghc-6.10.1/libraries' mkdir bootstrapping mkdir: cannot create directory `bootstrapping': File exists make[1]: [cabal-bin] Error 1 (ignored) /home/jswaine/ghc/ghc-6.10.1/ghc/ghc -Wall -DCABAL_VERSION=1,6,0,1 -odir /home/jswaine/ghc/ghc-6.10.1/libraries/bootstrapping -hidir /home/jswaine/ghc/ghc-6.10.1/libraries/bootstrapping -i/home/jswaine/ghc/ghc-6.10.1/libraries/Cabal -i/home/jswaine/ghc/ghc-6.10.1/libraries/filepath -i/home/jswaine/ghc/ghc-6.10.1/libraries/hpc --make cabal-bin -o cabal-bin ghc: missing -B<dir> option make[1]: *** [cabal-bin] Error 1 make[1]: Leaving directory `/home/jswaine/ghc/ghc-6.10.1/libraries' make: *** [stage1] Error 2
This is a highly mysterious error. Did you clean the tree before rebuilding? Always a good idea to do a 'make distclean' if you're not sure what state your build tree is in. If you get this from a clean build, then please put up a complete log of the build somewhere and we'll try to diagnose. Cheers, Simon
participants (3)
-
Christian Maeder
-
James Swaine
-
Simon Marlow