Locate & Install Ubuntu/Debian Package Build Dependencies
June 9th, 2007
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-dep <package>
$ (cd <package> && sudo dpkg-buildpackage -b -uc -d)
You’ll need to install build-essential for build-dep 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
UPDATE 2009-04-21: fixed plurals and stuff … only took me about a year and a half to notice! Oh and thanks for your comment, Richard.
Categories: Linux |



It should be “apt-get build-dep target”.
Note the missing “s” from “build-deps”.