我正在尝试在运行 OS X 10.10 Yosemite 的 Mac 上编译 haskell 程序,但每次使用ld: library not found for -lgmp时 ghc 都会失败:
$ 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)
帮助?