Locate & Install Ubuntu/Debian Package Build Dependencies
I wanted to make a slight modification to the gaim source on one of my systems and found I was unable to build the application due to missing build tools and dependencies. Stumbled across this in an obscure thread in the Ubuntu forums:
$ apt-get source <package>
$ sudo apt-get build-deps <package>
$ (cd <package> && sudo dpkg-buildpackage -b -uc -d)
You’ll need to install build-essentials for build-deps to work. If the stars are aligned, you should now have a ready-to-install .deb file. Install it using the following command:
dpkg -i <package>-<version>.deb
It should be “apt-get build-dep target”.
Note the missing “s” from “build-deps”.