Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a debian (well technically ubuntu) source package, i.e. the .dsc, the .tar.gz, etc., I want to build this. The dpkg-buildpackage fails, since I don't have all the build dependencies.

Normally I'd use apt-get build-dep, but this package isn't in apt.

Is there a 'clean', 'proper' way to install all the build dependencies, given a source package. I know I could just open the debian/control file, but I'm curious if there's a 'proper' way.

I have installed build-essential, and have all the normal compilers etc., this package requires extra software.

share|improve this question

4 Answers 4

Use mk-build-deps which is part of devscripts.

share|improve this answer
up vote 4 down vote accepted

Actually I can use dpkg-checkbuilddeps which shows the build dependencies. That gets me 99% of what I need

share|improve this answer
    
oddly enough, the packagename-version.dsc file contains the build dependencies in the line that begins with the string Build-Depends –  quack quixote Mar 30 '10 at 13:46

I usually use debuild from devscripts to build packages, and if relevent it prints a line of the missing build-deps.

The "proper" way is to use pbuilder or similar which will build the package in a minimal chroot, and just install any additional build-deps as specified by the package, this also removes a bunch of other potential issues (local installations of non-packaged libraries for example).

share|improve this answer

Try:

apt-get install build-essential
share|improve this answer
    
I have install build-essential. This package requires extra software. –  Rory Mar 30 '10 at 11:15
    
And it doesn't explain what requires? maybe libncurses-dev also. –  Lanselot Mar 30 '10 at 11:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.