use apt-get build-dep.