Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-07-2012, 03:45 PM   #1
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
Creating a .deb package... how to get all dependencies?

I downloaded gpac's MP4Box app which I need for a toolchain. I need to convert the source of MP4Box into a .deb

There is a debian/ dir in the MP4Box source code. I see that it has the control file and all that for me.

When I run
dpkg-buildpackage -rfakeroot
It gives me a list of dependencies it could not find (and therefore it didn't work.)

dpkg-checkbuilddeps: Unmet build dependencies: libc6-i686 (>= 2.7-10ubuntu3) libxvidcore4-dev (>= 2) libmozjs-dev (>=
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
My QUESTION is... What is the recommended way to obtain these dependencies so that the command passes? For example, I'm missing libc6-i686. I actually have libc6 installed to the latest version. I'm guessing, because my cpu is x64, that it won't install i686 since it is totally optional. Therefore, I cannot apt-get libc6-i686.

I'm a linux noob, so on a related note, does a .deb package all the dependencies into a standalone .deb? Or does it just ref the packages? If I go and dpkg -i the .deb on another system will it work out of the box? (I'm assuming it will, since that would be the point of me installing the dependencies on the host system.)
Old 02-08-2012, 12:17 PM   #2
Senior Member
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
If your system is still Ubuntu 7.04 (thats what your signature says) you won't get the dependencies because the repositories are moved when the release reaches End Of Life.

When you install a deb the control file lists the dependencies so apt-get can locate them and install them for you. There is no need, all things being equal, for you to make your own debs. Isn't a deb available for the package you downloaded? Have you done any research on how to do this? Did you read the install file or readme files in the source that explains what to do?

Is your system a 64 bit system? I mean the OS not the CPU. If it is you can install ia32-libs and thos will help run 32 bit libraries in 64 bit systems.
Old 02-08-2012, 01:38 PM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,917

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
All Ubuntu versions, 8.04 Hardy or later :

sudo apt-get build-dep gpac
... will install the most of the dependencies.

Don't know how you can be asked for libc6-i686 : Shouldn't happen ?

'gpac' is available as an amd64 package in all supported Ubuntu's .. : /usr/bin/MP4Box


Last edited by knudfl; 02-08-2012 at 01:40 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make a DEB package. Zssfssz Programming 2 01-09-2012 11:07 AM
LXer: Pretending a Package is Installed by Creating an Empty Package with Checkinstal LXer Syndicated Linux News 0 05-03-2009 03:10 PM
Creating .deb packages on Fedora MikeyCarter Linux - Software 1 02-06-2009 01:21 PM
creating deb package from kernel source fakie_flip Linux - Kernel 2 12-31-2007 03:31 AM
Broken dependencies - editing .deb files? craftybytes Linux - Desktop 2 10-24-2006 04:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration