"cannot determine current directory" while building haskell
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
Op fixed this with:
sudo ln -s /usr/lib/libgmp.so.10.0.1 /usr/lib/libgmp.so.3
This worked for me (Ubuntu 13.04 x86_64) with the slight change
sudo ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10.0.5 /usr/lib/libgmp.so.3