Ubuntu – “cannot determine current directory” while building haskell

11.10haskellinstallation

I'm trying to install haskell on ubuntu 11.10 and I'm following the instructions on this website: https://gist.github.com/1524859

But when I type ./configure I get an error message saying:

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

Anyone know what I'm doing wrong?

Best Answer

I was able to solve this by just installing the right packages (no linking).

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

I'll note that I already had these dependencies installed:

make libssl-dev build-essential curl git-core