answered 14 years ago
I solved this on Ubuntu by installing the libpango1.0-dev and libcairo-dev packages. I had also earlier installed the xorg-dev package, but I don't know if it is actually needed here.
libpango1.0-dev
libcairo-dev
xorg-dev