more issues

Don Stewart dons at
Fri Nov 14 02:00:47 EST 2008

>    We've had unbelievable problems getting past this ridiculous 'unable to
>    load object file or shared library' error when attempting to
>    build the 6.10.1 source tree.  We initially just built editline in a user
>    directory and attempted to manipulate environment variables to help the
>    linker (e.g. setting LIBRARY_PATH, LD_LIBRARY_PATH, and CPATH) - but this
>    did no good.
>    We then just installed the editline package so it's available globally and
>    the libraries (specifically live in /usr/local/lib, so it
>    should be found with no problem.  Not so for ghc - same error.  We're
>    running this on Red Hat.

What does ldd say?

It should say something like this (on Arch Linux):

    $ ldd /usr/lib/ghc-6.10.0/ghc     =>  (0x00007fffb09fe000)        => /usr/lib/ (0x00007f6aa8479000)    => /lib/ (0x00007f6aa820f000)        => /lib/ (0x00007f6aa800c000)          => /lib/ (0x00007f6aa7e08000)           => /lib/ (0x00007f6aa7b85000)         => /usr/lib/ (0x00007f6aa7943000)          => /lib/ (0x00007f6aa773b000)     => /lib/ (0x00007f6aa7520000)           => /lib/ (0x00007f6aa71cc000)
        /lib/ (0x00007f6aa86a7000)

For example, let's you know if the system linker can see libedit (and the other
C libraries GHC uses)
>    I'm part of a research group at Northwestern University that is exploring
>    the use of ghc and associated libraries for some upcoming projects.  It's
>    a shame that this is so difficult to even compile/install, and nobody
>    seems to be able to figure out what's wrong.

Do you have the option of using a distro package? Has GHC 6.10.x been packaged for 
your distro yet? Do you have the option of using GHC 6.8.x for now, or is there some 
feature in 6.10.x you expect to depend on?

-- Don

More information about the Glasgow-haskell-users mailing list