I'm trying to compile haskell programs on my mac running OS X 10.10 Yosemite, but ghc fails every time with ld: library not found for -lgmp:
$ ghc foo.hs
[1 of 1] Compiling Main ( foo.hs, foo.o )
Linking foo ...
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Help?
homebrew
version of ghc, it got this error. But things get right when I switch to thepossible official
one in that link. – Holcmanpossible official
. You can askghc-devs
mailing list. Whatever, you decide. I just solved this issue with thatghc
. – Holcman