Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am following the instructions for installing GHC in Ubuntu. And I want install it in my home directory. I have successfully installed GHC, but when I try to install the Haskell platform, the configure script complains that GHC doesn't work. This is because ld cannot find the GMP library, which is installed in ~/lib and GHC does not appear to pass LDPATH or LD_LIBRARY_PATH to ld. Suggestions?

share|improve this question

You can issue an argument to ./configure of haskell-platform

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-ghc=ARG          Use ARG as the path to ghc [default=autodetect]
  --with-ghc-pkg=ARG      Use ARG as the path to ghc-pkg [default=autodetect]
  --with-hsc2hs=ARG       Use ARG as the path to hsc2hs [default=autodetect]

Could one of these be what you are looking for? To see all the available options do

./configure --help
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.