Ubuntu users (or others who hate Ubuntu) always complain about dependency problems while building something from source. Well, there is a very easy way to solve all those library and other dependency problems. Just use the following ::
$sudo apt-get build-dep <source-package-name>
I have posted this directly from the APT HOWTO . Check it out for a better understanding of APT’s power.