Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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'm trying to install the Haskell Platform on Raring. Since there's no apt package, I've downloaded the GHC 7.4.2 binary x86_64 distribution (which is a prerequisite), and I am trying to run ./configure. It's failing with the following message:

checking for path to top of build tree... utils/ghc-pwd/dist/build/tmp/ghc-pwd: error while loading shared libraries: cannot open shared object file: No such file or directory

configure: error: cannot determine current directory

How can I fix this?

share|improve this question
up vote 3 down vote accepted

Note that I would usually just do sudo apt-get install haskell-platform, which should just sort everything out. However it hasn't been packaged for 13.04 yet.

Get these dependencies, if you don't already have them:

sudo apt-get install -y libgmp3-dev freeglut3 freeglut3-dev

The Haskell platform seems to be looking for a, but the libgmp package only supplies, and The fix:

sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/

(Disclaimer: This worked for me. Not sure if it's a sensible thing to do)

share|improve this answer
They can't package the platform for 13.04 because 13.04 has GHC 7.6, whereas the current platform release requires 7.4. I'd love some reasoning behind the decision to ship 7.6 before the platform's updated to use it, but I haven't found any yet. – Matthew Walton Apr 30 '13 at 13:46
Nowadays, you're probably better off just using Stack, which will take care of managing GHC installations for you: – hdgarrood Mar 14 at 19:25
Absolutely yes! Stack is brilliant. – Matthew Walton Mar 15 at 8:45

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.