Before you can build a package from source, you will usually need to install its build dependencies.
To do this, simply run sudo apt-get build-dep PACKAGE.
sudo apt-get build-dep PACKAGE