LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-07-2012, 04:45 PM   #1
Geminias
Member
 
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
Code:
dpkg-buildpackage -rfakeroot
It gives me a list of dependencies it could not find (and therefore it didn't work.)

Code:
dpkg-checkbuilddeps: Unmet build dependencies: libc6-i686 (>= 2.7-10ubuntu3) libxvidcore4-dev (>= 2) libmozjs-dev (>= 1.8.1.16+nobinonly-0ubuntu1)
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, 01:17 PM   #2
k3lt01
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, 02:38 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
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 ..
http://packages.ubuntu.com/hardy/gpac : /usr/bin/MP4Box

.

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


Reply


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 12:07 PM
LXer: Pretending a Package is Installed by Creating an Empty Package with Checkinstal LXer Syndicated Linux News 0 05-03-2009 04:10 PM
Creating .deb packages on Fedora MikeyCarter Linux - Software 1 02-06-2009 02:21 PM
creating deb package from kernel source fakie_flip Linux - Kernel 2 12-31-2007 04:31 AM
Broken dependencies - editing .deb files? craftybytes Linux - Desktop 2 10-24-2006 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 AM.

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