LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-21-2017, 07:27 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 134

Rep: Reputation: 188Reputation: 188
package fails to see dependency


Consider a package B. It has a dependency of package A. Package A is already installed. Package B fails to compile, citing a lack of package A as the reason. But A is there.

Note: both packages are in the book. Package A was installed following the book exactly. Package B's attempted compilation was also done as per the book. Md5sum's checked out.

So, what does one do in this situation?

Thanks you in advance.

p.s. I've had this happen in every distro and the various solutions (specifying --cpu, --mcpu, --arch, --march, sym-linking .so files like a fiend, etc.) never seemed to work.
 
Old 06-22-2017, 09:40 AM   #2
Fellype
Member
 
Registered: Jul 2013
Location: Guaratingueta / Brazil
Distribution: Slackware
Posts: 60

Rep: Reputation: 31
Quote:
Originally Posted by jr_bob_dobbs View Post
Consider a package B. It has a dependency of package A. Package A is already installed. Package B fails to compile, citing a lack of package A as the reason. But A is there.
I guess that package B is searching for package A in a wrong place... OR package A has some suffix not recognized by package A.
For e.g.:
- package B expects package A to be in /usr but it is in /opt or /usr/local
- package A has a suffix like '-qt5', being named as packageA-qt5, but package b searches for packageA

Best regards.
 
Old 06-22-2017, 11:31 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
It might help to name packages, for 1 to make sure t installed ok, 2 if there is a problem it could be reported, 3 to help other people if they suffer the same.
 
Old 06-23-2017, 10:45 AM   #4
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 134

Rep: Reputation: 188Reputation: 188
Normally, my questions here are highly specific. This thread is more general, as it is about a problematic situation that I have run across in several distros over many years, which has never been resolved. Technically one could say this is not a Linux From Scratch question, however, because users of [B]LFS deal with compiling from source for everything, I thought here would be where the expertise for this sort of thing would reside.
 
Old 06-24-2017, 05:42 PM   #5
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Usually a google search of the error gives a clue as to what went wrong, as often someone else has run into the same situation.

Sometimes its a bug in package A.

Sometimes package A depends on package C, and fails to complain loud enough.

Sometimes package A needs to be configured with a particular command, before running make, so that package B can compile.

A lot of times there's a dependency that did not get mentioned because it was assumed that everyone would already have that dependency.

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com

Last edited by Wayne Sallee; 06-24-2017 at 05:43 PM.
 
Old 06-25-2017, 06:52 PM   #6
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
You appear to be looking for information on the Computer Science aspect of this. The terms you might find helpful are: circular dependency, dependency hell, mutual recursion and cyclic references. There are techniques to combat it ADP, which is requires revisiting code, like debugging, and programmers don't like to fix their mistakes until it browbeaten about them. The other is merging, which everyone now does because CS in the post OO era has forgotten important principals. The words "feature complete" are lost on an entire generation of software engineers.

Come to think of it, there's another method to combat it: runtime integration. But the shortest path to "putting out something cool" is to simply require it and move on, rather than check for the required library and report that the feature is unavailable. (Example: Go look at UDisks 2.7 in the current SVN and see what upstream did with libblockdev.)

Last edited by Luridis; 06-25-2017 at 06:53 PM.
 
  


Reply



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
slackware package dependency babbab Slackware 18 12-12-2016 12:00 PM
Yum update fails because of a newer dependency rogerp Linux - General 3 06-30-2014 01:48 PM
Yum update fails - Missing Dependency godisadj Fedora 5 01-02-2008 05:44 AM
yum update fails because of faad2 dependency alabamaman Linux - Software 1 09-11-2007 10:41 PM
how to downgrade a package for a dependency gnulinusr Linux - Newbie 7 06-30-2005 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:16 PM.

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
Open Source Consulting | Domain Registration