[Haskell-cafe] Re: Problem linking with GHC 6.8.1

Simon Marlow simonmarhaskell at gmail.com
Wed Nov 7 04:44:41 EST 2007


Alberto Ruiz wrote:
> If you don't use the foreign function interface I think that you only need 
> the -L option:
> 
> ghc --make -L/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs
> 
> Something similar worked for me, but this new behavior is not very reasonable. 
> Could it be a bug?

It looks like a problem with the binary distributions.  They include gmp, 
but somehow don't install it.  As a workaround, you can take gmp.h and 
libgmp.a from from the binary tarball and put them by hand into 
/usr/local/lib/ghc-6.8.1 (or wherever you installed it).  Alternatively you 
can install a suitable gmp package using your OS's package manager (you 
didn't say which flavour of Linux you're on).

BTW, a better place to ask questions about GHC is 
glasgow-haskell-users at haskell.org, you're more likely to get a quick answer.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list