Hi Ian and everyone,

Thanks for responding to my e-mails and thus helping me out getting ghc build 
going.  I was able to build ghc 6.8.2 (after installing 6.6.1 from binaries)  
from source for Suse Linux Enterprise Server 9. However when I try to build it 
for SuSe Linux Enterprise Server 10; I get the following error:

checking for path to top of build tree... /usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
./configure: line 2664: utils/pwd/pwd: No such file or directory

My configure options are as follows:

./configure --prefix=/opt/ghc/6.8.3 --libdir=/opt/ghc/6.8.3/lib64 
--with-gmp-includes=/opt/libgmp/4.2.4/include 
--with-gmp-libraries=/opt/libgmp/4.2.4/lib

I built gmp 4.2.4 for this platform yesterday thinking that my previous 
installation of libgmp is not sane, but this newest version of gmp does not 
work either.

The lib directory has all the libraries, the includes directory I have gmp.h 
header file.  Is this a bug or am I possibly doing anything wrong here?

Your help as always is very appreciated!
-Imam

-----Original Message-----
From: Ian Lynagh [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 19, 2008 12:26 PM
To: Toufique, Imam
Cc: 'Christian Maeder'; '[email protected]'; 'Duncan Coutts'
Subject: Re: need some help please -- having build issues with ghc 6.6.1


Hi Imam,

On Fri, Oct 17, 2008 at 12:55:32PM -0600, Toufique, Imam wrote:
>
> But, now I have done the following to get 6.6.1 working for this issue:
>
> I have edited the ghc * ghci wrapper script and added LD_LIBRARY_PATH='/ 
> opt/pkgs/readline/5.0/lib' (and exported LD_LIBRARY_PATH) and it seems to 
> work now.
>
> Is that an acceptable method within ghc or would this break something else?

That's fine, although obviously reinstalling or upgrading GHC in the
same place would mean your alteration is lost.

Incidentally,
    LD_LIBRARY_PATH=/tmp/ian ghci
works for me if I move libreadline.so.5 there.


Thanks
Ian

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to