Unmet build dependencies

Packaging for debian based distributions can be a pain, especially when you don’t do it often, and you normally do not install -dev packages.

dpkg-checkbuilddeps 2>&1 | perl -p -e ‘s/\([^)]*\)//g;s/([^:]*:){2}//;’ | sudo xargs echo apt-get install

This little 1.25 line shell script helps ease my pain. It only generates the command to run, since apt-get likes to interact, so sending it STDIN doesn’t work very well.

2 thoughts on “Unmet build dependencies”

  1. WHOA!!!

    OMG ROFL LOLLERZ

    That would have required me to have a clue about apt.

    I like apt-get build-dep much better.

    The sad part is, I think I have actually used apt-get build-dep a few months ago, and simply forgot!

    Thanks.

Comments are closed.