2

I'm trying to build an application from source on a Debian machine; the source code includes a 'debian' directory with all the files required to build the package (control/rules etc.).

When I run dpkg-buildpackage, it fails because I don't have the required dependencies. OK.

So, I run dpkg-checkbuilddeps, which gives me a very clear list of what the package dependencies are.

Am I now expected to verify the (parse-unfriendly) output of that tool manually? And then install each package myself? It seems insane to me to have such high quality tools that only get you 90% to your goal, so I must be doing something wrong.

How might I get from dpkg-checkbuilddeps to 'done'?

Thank you.

mikewaters
  • 1,135
  • 1
  • 14
  • 26
  • Duplicate I see: http://serverfault.com/questions/127625/given-a-debian-source-package-how-do-i-install-the-build-deps/127679#127679 – Tobu Jun 23 '11 at 21:48

2 Answers2

4

In the package source folder,

sudo mk-build-deps -i -t aptitude

will build, and install with aptitude, a package that pulls the build dependencies you need. mk-build-deps is part of the devscripts package.

Tobu
  • 4,367
  • 1
  • 23
  • 31
1

Is this package a debian source package obtained via apt-get source? If so, you can just apt-get build-dep <packagename>.

You may be using this already - but this is one of my debian bible pages - building packages.

EightBitTony
  • 9,211
  • 1
  • 32
  • 46